Angular App throws an CORS Error witth GithubPages

Viewed 35

I have an Angular App hosted on GitHub Pages. The App is also a Progressive web App. My problem is now, when I enter the site, the following CORS Error appears.

Access to fetch at 'https://github.com/login?return_to=%2Fpages%2Fauth%3Fnonce%3D0fd8dec7-0098-4603-955f-
8976f9f26d7e%26page_id%3D28877730%26path%3DL25nc3cuanNvbj9uZ3N3LWNhY2hlLWJ1c3Q9MC4zNjM2ODY0OTU4ODMwNDk0Nw' 
(redirected from 'https://silver-memory-abf1a414.pages.github.io/ngsw.json?ngsw-cache-bust=0.36368649588304947') 
from origin 'my--website-addres' has been blocked by CORS policy: 
No 'Access-Control-Allow-Origin' header is present on the requested resource. 
If an opaque response serves your needs, set the request's mode to 
'no-cors' to fetch the resource with CORS disabled.

How can I solve that?

0 Answers
Related