Merge pull request #695 from OpenSignLabs/login_to_sandbox

refactor: handle conditions of sandbox
This commit is contained in:
nxglabs
2025-05-29 19:04:16 +00:00
parent 3d223ba343
commit d4c0051cd9
31 changed files with 302 additions and 291 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ app.use(express.urlencoded({ limit: '50mb', extended: true }));
app.use(function (req, res, next) {
req.headers['x-real-ip'] = getUserIP(req);
const publicUrl = 'https://' + req?.get('host');
req.headers['public_url'] = publicUrl; // process.env.PUBLIC_URL
req.headers['public_url'] = publicUrl;
next();
});
function getUserIP(request) {