Skip to content

Commit 3f3ca66

Browse files
Merge pull request #1700 from OpenSignLabs/updates-14666117248
fix: return https protocol for signing urls
2 parents 307137f + 2fd6d1a commit 3f3ca66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/OpenSignServer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ app.use(express.json({ limit: '50mb' }));
160160
app.use(express.urlencoded({ limit: '50mb', extended: true }));
161161
app.use(function (req, res, next) {
162162
req.headers['x-real-ip'] = getUserIP(req);
163-
const publicUrl = req?.protocol + '://' + req?.get('host');
163+
const publicUrl = 'https://' + req?.get('host');
164164
req.headers['public_url'] = publicUrl; // process.env.PUBLIC_URL
165165
next();
166166
});

0 commit comments

Comments
 (0)