Copilot commented on code in PR #3948:
URL: https://github.com/apache/hertzbeat/pull/3948#discussion_r2664360482


##########
home/static/.htaccess:
##########
@@ -1,2 +1,2 @@
-# CSP permissions for hertzbeat.apache.org - Adding 3rd party service Algolia.
-SetEnv CSP_PROJECT_DOMAINS "https://*.algolia.net/ https://*.algolianet.com/ 
https://*.algolia.io/";
+# CSP permissions for hertzbeat.apache.org - Adding 3rd party service Algolia 
& Kapa.ai
+SetEnv CSP_PROJECT_DOMAINS "https://*.algolia.net/ https://*.algolianet.com/ 
https://*.algolia.io/ https://widget.kapa.ai/ https://api.kapa.ai/ 
https://*.kapa.ai/";

Review Comment:
   The domain specifications for Kapa.ai are redundant. The wildcard pattern 
`https://*.kapa.ai/` already matches both `widget.kapa.ai` and `api.kapa.ai`, 
making the explicit entries unnecessary. Consider removing the redundant 
specific domain entries and keeping only the wildcard pattern to simplify the 
configuration.
   ```suggestion
   SetEnv CSP_PROJECT_DOMAINS "https://*.algolia.net/ https://*.algolianet.com/ 
https://*.algolia.io/ https://*.kapa.ai/";
   ```



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