Skip to content

Commit c9cf4d1

Browse files
authored
Fix .htaccess to enable hCaptcha (#810)
1 parent 59586ee commit c9cf4d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.htaccess

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ ErrorDocument 404 /404.html
44
Header always set Content-Security-Policy "default-src 'self' https: data: 'unsafe-inline'; \
55
frame-src 'self' https://www.youtube.com https://player.bilibili.com https://hcaptcha.com https://*.hcaptcha.com; \
66
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.algolianet.com https://*.algolia.net https://*.algolia.io https://api.github.com https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app https://hcaptcha.com https://*.hcaptcha.com; \
7-
connect-src 'self' https://*.algolianet.com https://*.algolia.net https://*.algolia.io https://api.github.com https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app; \
7+
connect-src 'self' https://*.algolianet.com https://*.algolia.net https://*.algolia.io https://api.github.com https://kapa-widget-proxy-la7dkmplpq-uc.a.run.app https://*.hcaptcha.com; \
8+
style-src 'self' 'unsafe-inline' https://hcaptcha.com https://*.hcaptcha.com; \
9+
img-src 'self' data: https://hcaptcha.com https://*.hcaptcha.com; \
810
frame-ancestors 'self'; \
911
object-src 'none'; \
1012
upgrade-insecure-requests;"

0 commit comments

Comments
 (0)