Pagefind issue with CSP #3634
-
|
I’m not sure if this is a bug or if I’ve configured something incorrectly, but the search doesn’t seem to work for my Vietnamese content. When I try to search, the results don’t show anything related to my site’s content, even though the text clearly exists in the repository. I’ve attached a screenshot showing the issue.
This is my repo: https://github.com/MedPocket/18-months |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Thanks for the report 🙌 Tested your repo by building and previewing locally and everything works as expected. Altho, checking the hosted version reveal the following console error: And indeed, your page is served with a I would assume this one is automatically added by your host based on a feature you enabled or something similar? This is not specific to Pagefind but mostly CSP and WebAssembly in general but you can find more details and solutions in this section: https://pagefind.app/docs/hosting/#content-security-policy-csp |
Beta Was this translation helpful? Give feedback.

Thanks for the report 🙌
Tested your repo by building and previewing locally and everything works as expected. Altho, checking the hosted version reveal the following console error:
And indeed, your page is served with a
content-security-policyresponse header: