mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 18:30:39 +09:00
fix(auth): apply effective trusted origins and honor allowed hostnames in public mode
This commit is contained in:
parent
ca919d73f9
commit
55bb3012ea
2 changed files with 5 additions and 5 deletions
|
|
@ -441,7 +441,7 @@ if (config.deploymentMode === "authenticated") {
|
|||
},
|
||||
"Authenticated mode auth origin configuration",
|
||||
);
|
||||
const auth = createBetterAuthInstance(db as any, config);
|
||||
const auth = createBetterAuthInstance(db as any, config, effectiveTrustedOrigins);
|
||||
betterAuthHandler = createBetterAuthHandler(auth);
|
||||
resolveSession = (req) => resolveBetterAuthSession(auth, req);
|
||||
resolveSessionFromHeaders = (headers) => resolveBetterAuthSessionFromHeaders(auth, headers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue