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:
2026-05-27 02:21:15 +03:00
parent 7eb2e85bbc
commit 2cc2a917a5

View File

@@ -28,6 +28,7 @@ async function bootstrap() {
"'self'",
"https://t.sase.tr",
"https://connect.facebook.net",
"https://challenges.cloudflare.com",
"'sha256-T5FzBQBMINFjZ4WLy58SeZ+J7xXzjnQEGlg618CQnhA='",
],
styleSrc: ["'self'", "https:", "'unsafe-inline'"],
@@ -45,9 +46,10 @@ async function bootstrap() {
"https://t.sase.tr",
"https://www.facebook.com",
"https://connect.facebook.net",
"https://challenges.cloudflare.com",
],
objectSrc: ["'none'"],
frameSrc: ["'none'"],
frameSrc: ["https://challenges.cloudflare.com"],
},
},
}),