Content Security Policy for Github.io #662
PaulChernoch-Shell
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I got the Pagefind search bar to work on my Github Pages website. I had two problems, now solved.
The img-src..data: part was necessary for the magnifying glass image to come up.
Unfortunately, the pagefind directory is deployed to this place:
myusername.github.io/myusername/pagefind
That is because my repo name and username are the same, as is the default situation for Github Pages.
Because of this, you need to modify the HTML code:
Or in my case, since all my HTML files are in one directory at the Website root:
It would be helpful to add this to the troubleshooting docs for the library for people using Github Pages websites.
Beta Was this translation helpful? Give feedback.
All reactions