Skip to content

Commit 2d6fc5e

Browse files
[Fix] csp connect src (#423)
1 parent bb81fc2 commit 2d6fc5e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.htaccess

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
ErrorDocument 404 /404.html
22

3-
Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.kapa.ai *.githubusercontent.com *.googleapis.com *.google.com *.run.app *.gstatic.com *.github.com https://hcaptcha.com https://*.hcaptcha.com *.algolia.net *.algolianet.com *.apachecon.com *.communityovercode.org 'unsafe-inline' 'unsafe-eval'; frame-src *; frame-ancestors 'self' *.google.com; worker-src 'self' data: blob:; img-src 'self' blob: data: https:; font-src 'self' data: blob:; object-src 'none'"
3+
<IfModule mod_headers.c>
4+
Header set Content-Security-Policy "default-src 'self' data: blob: *.apache.org *.kapa.ai *.githubusercontent.com *.googleapis.com *.google.com *.run.app *.gstatic.com *.github.com https://hcaptcha.com https://*.hcaptcha.com *.apachecon.com *.communityovercode.org 'unsafe-inline' 'unsafe-eval'; \
5+
script-src 'self' 'unsafe-inline' 'unsafe-eval' widget.kapa.ai www.google.com https://hcaptcha.com https://*.hcaptcha.com https://www.gstatic.com; \
6+
connect-src 'self' proxy.kapa.ai kapa-widget-proxy-la7dkmplpq-uc.a.run.app metrics.kapa.ai *.algolia.net *.algolianet.com https://hcaptcha.com https://*.hcaptcha.com www.google.com; \
7+
frame-src 'self' * www.google.com https://hcaptcha.com https://*.hcaptcha.com; \
8+
frame-ancestors 'self' *.google.com; \
9+
worker-src 'self' data: blob:; \
10+
img-src 'self' blob: data: https:; \
11+
font-src 'self' data: blob:; \
12+
object-src 'none'"
13+
</IfModule>

0 commit comments

Comments
 (0)