fix: update Altcha component to properly set attributes and handle state changes

This commit is contained in:
hamed
2026-07-10 14:55:12 +03:30
parent 58a69e3345
commit 2fd0eec156
2 changed files with 22 additions and 17 deletions
+3
View File
@@ -63,6 +63,9 @@ const nextConfig = {
"default-src 'self'",
"img-src 'self' https: data: blob:",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com https://www.google-analytics.com",
// ALTCHA کپچا برای حل proof-of-work از Web Workerِ blob استفاده می‌کند؛
// بدون این، worker بلاک و کپچا «احراز هویت ناموفق» می‌دهد.
"worker-src 'self' blob:",
"style-src 'self' 'unsafe-inline'",
"font-src 'self' data:",
'connect-src ' + connectSrc,