bito-code-review[bot] commented on code in PR #36685:
URL: https://github.com/apache/superset/pull/36685#discussion_r2625071351


##########
docs/static/.htaccess:
##########
@@ -22,7 +22,7 @@ RewriteRule ^(.*)$ https://superset.apache.org/$1 [R,L]
 RewriteCond %{HTTP_HOST} ^superset.incubator.apache.org$ [NC]
 RewriteRule ^(.*)$ https://superset.apache.org/$1 [R=301,L]
 
-Header set Content-Security-Policy "default-src data: blob: 'self' 
*.apache.org widget.kapa.ai *.githubusercontent.com *.scarf.sh *.googleapis.com 
*.google.com *.run.app *.gstatic.com *.github.com *.algolia.net 
*.algolianet.com 'unsafe-inline' 'unsafe-eval'; frame-src *; frame-ancestors 
'self' *.google.com https://sidebar.bugherd.com; form-action 'self'; worker-src 
blob:; img-src 'self' blob: data: https:; font-src 'self'; object-src 'none'"
+Header set Content-Security-Policy "default-src data: blob: 'self' 
*.apache.org widget.kapa.ai *.githubusercontent.com *.scarf.sh *.googleapis.com 
*.google.com *.gstatic.com *.github.com *.algolia.net *.algolianet.com 
'unsafe-inline' 'unsafe-eval'; frame-src *; frame-ancestors 'self' *.google.com 
https://sidebar.bugherd.com; form-action 'self'; worker-src blob:; img-src 
'self' blob: data: https:; font-src 'self'; object-src 'none'"

Review Comment:
   <div>
   
   
   <div id="suggestion">
   <div id="issue"><b>Incomplete CSP for Kapa AI</b></div>
   <div id="fix">
   
   Removing '*.run.app' from the CSP default-src may break the Kapa AI widget's 
fallback proxy (kapa-widget-proxy-la7dkmplpq-uc.a.run.app), as required by 
Kapa's CSP guidelines. Additionally, the CSP is missing 'proxy.kapa.ai' and 
'metrics.kapa.ai', which are needed for the widget's API connections and 
metrics. This could cause the docs site's AI chatbot to fail in browsers with 
strict CSP enforcement.
   </div>
   
   
   </div>
   
   
   
   
   <small><i>Code Review Run #7062e4</i></small>
   </div>
   
   ---
   Should Bito avoid suggestions like this for future reviews? (<a 
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
   - [ ] Yes, avoid them



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to