1

First, I apologize for posting this here because I imagine it's not in the right place ...: / Here, I have a git repository on which I have a personal project, I had a little abandoned and then I plunge on it. Until now I had never had a problem but since today I have the following error:

Refused to load the image 'https://monrepo.github.io/favicon.ico' because it violates the following Content Security Policy directive: "img-src data:".
Failed to load resource: the server responded with a status of 404 (Not Found)

The problem comes (normally?) not from my code because locally I have no worries so I imagine there is a trick that blocks on the github side but what ?!

Thanks for your help! =)

FloCAD
  • 113
  • 3
  • 13

2 Answers2

0

Alright, it was just an inattention mistake. Before it was necessary to have a dedicated branch gh-pages but now the master branch (or any other branch) can be chosen to be the gh-page. Simply have to select it in the repository settings...

FloCAD
  • 113
  • 3
  • 13
0

If the username differs from the repository name User/MyRepository then you have to go to the repository settings and mark GitHub Pages explicitly to publish it.

If your name matches the user then you dont need to explicitly publish it, but its done automatically considering "*.github.io".

So the format for automatic publishing is: User/User.github.io