fix: gate unsafe-eval to dev, drop redundant X-Frame-Options, document PKCE+state
- CSP script-src 'unsafe-eval' is now dev-only; Next.js HMR needs it in development but the production standalone build does not - Remove X-Frame-Options: DENY since frame-ancestors 'none' in CSP supersedes it in all modern browsers; keeping both creates a maintenance hazard - Add comment explaining why state check is added alongside PKCE default Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -89,6 +89,7 @@ function createOAuthProviders(): OAuthConfig<any>[] {
|
||||
authorization: config.oauth.authorizationUrl ?? undefined,
|
||||
token: config.oauth.tokenUrl ?? undefined,
|
||||
userinfo: config.oauth.userinfoUrl ?? undefined,
|
||||
// PKCE is the default for OIDC; state is added as defence-in-depth
|
||||
checks: ["pkce", "state"],
|
||||
profile(profile) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user