Skip to content

Commit 0c75b60

Browse files
authored
Update .htaccess to allow kapa.ai bot (#623)
Enabling the kapa.ai bot, this time using an Infra-suggested CSP update (see https://issues.apache.org/jira/browse/INFRA-26638).
1 parent 3e4a6b1 commit 0c75b60

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ Redirect permanent /datafusion-python https://datafusion.apache.org/python
2424

2525
# redirect all ballista URLs to new website
2626
Redirect permanent /ballista https://datafusion.apache.org/ballista
27+
28+
# enable kapa.ai bot (GH-45665)
29+
# See https://docs.kapa.ai/integrations/understanding-csp-cors and https://issues.apache.org/jira/browse/INFRA-26638
30+
<IfModule mod_headers.c>
31+
Header set Content-Security-Policy "default-src 'self' data: blob: 'unsafe-inline' https://www.apachecon.com/ https://www.communityovercode.org/ https://analytics.apache.org/; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://analytics.apache.org/ https://www.apachecon.com/ https://*.kapa.ai/; style-src 'self' 'unsafe-inline' https://*.kapa.ai/ data:; frame-ancestors 'self'; frame-src 'self' data: blob:; img-src 'self' data: https://*.apache.org/ https://www.apachecon.com/ https://*.kapa.ai/; worker-src 'self' data: blob:;"
32+
</IfModule>

0 commit comments

Comments
 (0)