mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
Compare commits
1 Commits
1.11.0-s.0
...
1.11.0-s.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b167d94ead |
@@ -78,6 +78,13 @@ export function corsWithLoginPageSupport(corsConfig: any) {
|
|||||||
return callback(null, true);
|
return callback(null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
corsConfig?.origins &&
|
||||||
|
corsConfig.origins.includes(origin)
|
||||||
|
) {
|
||||||
|
return callback(null, true);
|
||||||
|
}
|
||||||
|
|
||||||
// If origin doesn't match dashboard URL, check if it's a valid loginPage domain
|
// If origin doesn't match dashboard URL, check if it's a valid loginPage domain
|
||||||
const isValidDomain = await isValidLoginPageDomain(originHost);
|
const isValidDomain = await isValidLoginPageDomain(originHost);
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ function parseSetCookieString(
|
|||||||
: new URL(env.app.dashboardUrl).hostname;
|
: new URL(env.app.dashboardUrl).hostname;
|
||||||
if (d) {
|
if (d) {
|
||||||
options.domain = d;
|
options.domain = d;
|
||||||
console.log("Setting cookie domain to:", d);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user