We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cf8082 + 5b2599c commit dcdcdb1Copy full SHA for dcdcdb1
lib/requests/sharing-request.js
@@ -73,7 +73,7 @@ class SharingRequest extends AuthRequest {
73
// Check if is already registered or is data browser or the webId is not on this machine
74
if (request.isUserLoggedIn()) {
75
if (
76
- new url.URL(request.session.subject._id).origin !== serverUrl.origin ||
+ !this.isSubdomain(serverUrl.host, new url.URL(request.session.subject._id).host) ||
77
(appUrl && request.isSubdomain(serverUrl.host, appUrl.host) && appUrl.protocol === serverUrl.protocol) ||
78
await request.isAppRegistered(req.app.locals.ldp, appOrigin, request.session.subject._id)
79
) {
0 commit comments