thisisnic commented on code in PR #623:
URL: https://github.com/apache/arrow-site/pull/623#discussion_r2006316614


##########
.htaccess:
##########
@@ -24,3 +24,11 @@ Redirect permanent /datafusion-python 
https://datafusion.apache.org/python
 
 # redirect all ballista URLs to new website
 Redirect permanent /ballista https://datafusion.apache.org/ballista
+
+# enable kapa.ai bot (GH-45665)
+# See https://docs.kapa.ai/integrations/understanding-csp-cors and 
https://issues.apache.org/jira/browse/INFRA-26638
+<IfModule mod_headers.c>
+    <Location /docs>
+        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:;"
+    </Location>

Review Comment:
   ```suggestion
           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:;"
   ```
   
   Removing this as apparently the Location directive doesn't work in 
`.htaccess` files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to