codelipenghui opened a new pull request, #1082: URL: https://github.com/apache/pulsar-site/pull/1082
## Summary Fix the search functionality on the documentation site by adding Algolia domains to the Content-Security-Policy header. ## Problem The search functionality was not working because the CSP header was blocking: - Algolia DocSearch JavaScript scripts - API requests to Algolia servers ## Solution Added the required Algolia domains to the CSP header in `static/.htaccess`: - `https://*.algolia.net` - `https://*.algolianet.com` - `https://*.algolia.io` These domains are added to both `script-src` and `connect-src` directives. ## Testing Verified that: 1. Algolia API is accessible and contains 58,000+ indexed documents 2. Search queries return correct results via API 3. After the fix, search functionality works on the local development server ## Checklist - [x] My change requires a documentation update - [x] I have updated the documentation accordingly - [x] I have read the contributing guide -- 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]
