Skip to content

Commit dcdcdb1

Browse files
authored
Merge pull request #1215 from solid/sharingPatch
Another Sharing Patch
2 parents 1cf8082 + 5b2599c commit dcdcdb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/requests/sharing-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class SharingRequest extends AuthRequest {
7373
// Check if is already registered or is data browser or the webId is not on this machine
7474
if (request.isUserLoggedIn()) {
7575
if (
76-
new url.URL(request.session.subject._id).origin !== serverUrl.origin ||
76+
!this.isSubdomain(serverUrl.host, new url.URL(request.session.subject._id).host) ||
7777
(appUrl && request.isSubdomain(serverUrl.host, appUrl.host) && appUrl.protocol === serverUrl.protocol) ||
7878
await request.isAppRegistered(req.app.locals.ldp, appOrigin, request.session.subject._id)
7979
) {

0 commit comments

Comments
 (0)