1

I encounter a problem, now I use hexo built for a personal blog: https://darr-en1.github.io/

But then the deployment to https://github.com/Darr-en1/Darr-en1.github.io: Out of curiosity, I set the project as private, and then it becomes 404, which cannot be accessed, and then I set it as public, which cannot solve this problem, Then I delete the project and recreate it then hexo d, but still cannot be accessed.

Can you help me?

deploy:
  type: git
  repo: https://github.com/Darr-en1/Darr-en1.github.io.git
  branch: master

When I opened the developer tool, the error was shown as follows:

Refused to load the image 'https://darr-en1.github.io/favicon.ico' because it violates the following Content Security Policy directive: "img-src data:".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Darr_en1
  • 11
  • 1

1 Answers1

0

Check the Content Security Policy Reference mentioned here and see, as in this comment if you need to use useHash: true.

See also if you have a redirect issue as an SPA (Single page Application)

Finally, as a GitHub Page, make sure to select master as your publishing branch, as illustrated here.
See "Configuring a publishing source for GitHub Pages".

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250