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.
1 parent b13f181 commit a3bbe91Copy full SHA for a3bbe91
lib/requests/sharing-request.js
@@ -67,7 +67,7 @@ class SharingRequest extends AuthRequest {
67
const request = SharingRequest.fromParams(req, res)
68
69
const appUrl = request.getAppUrl()
70
- const appOrigin = `${appUrl.protocol}//${appUrl.host}`
+ const appOrigin = appUrl.origin
71
const serverUrl = new url.URL(req.app.locals.ldp.serverUri)
72
73
console.log(new url.URL(request.session.subject._id).origin, serverUrl.origin)
@@ -156,7 +156,7 @@ class SharingRequest extends AuthRequest {
156
}
157
158
getAppUrl () {
159
- return url.parse(this.authQueryParams.redirect_uri)
+ return new url.URL(this.authQueryParams.redirect_uri)
160
161
162
async getProfileGraph (ldp, webId) {
0 commit comments