fix(api): CSP'ye Cloudflare Turnstile'ı ekle (widget engelleniyordu)
helmet CSP script-src/connect-src/frame-src challenges.cloudflare.com'u engellediğinden Turnstile widget'ı yüklenemiyordu → token üretilmiyor → captcha enforce edilen login/register/contact "şifre hatalı" ile reddediyordu. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ async function bootstrap() {
|
|||||||
"'self'",
|
"'self'",
|
||||||
"https://t.sase.tr",
|
"https://t.sase.tr",
|
||||||
"https://connect.facebook.net",
|
"https://connect.facebook.net",
|
||||||
|
"https://challenges.cloudflare.com",
|
||||||
"'sha256-T5FzBQBMINFjZ4WLy58SeZ+J7xXzjnQEGlg618CQnhA='",
|
"'sha256-T5FzBQBMINFjZ4WLy58SeZ+J7xXzjnQEGlg618CQnhA='",
|
||||||
],
|
],
|
||||||
styleSrc: ["'self'", "https:", "'unsafe-inline'"],
|
styleSrc: ["'self'", "https:", "'unsafe-inline'"],
|
||||||
@@ -45,9 +46,10 @@ async function bootstrap() {
|
|||||||
"https://t.sase.tr",
|
"https://t.sase.tr",
|
||||||
"https://www.facebook.com",
|
"https://www.facebook.com",
|
||||||
"https://connect.facebook.net",
|
"https://connect.facebook.net",
|
||||||
|
"https://challenges.cloudflare.com",
|
||||||
],
|
],
|
||||||
objectSrc: ["'none'"],
|
objectSrc: ["'none'"],
|
||||||
frameSrc: ["'none'"],
|
frameSrc: ["https://challenges.cloudflare.com"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user