Github Pages has been blocked by CORS policy again #31316
-
|
My github pages has been working fine with CORS policy until yesterday, when suddenly all the API requests were blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. My code has been exactly the same. Has the Github Pages disabled CORS again? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
maybe similar solution to this or those suggested by others at this thread |
Beta Was this translation helpful? Give feedback.
-
|
If you want access a file from GitHub pages from other website, there's a minimum CORS support available. It's literally this single header: It's enough to download a file, like some JSON configuration. Verbs Important: The header |
Beta Was this translation helpful? Give feedback.
maybe similar solution to this or those suggested by others at this thread
https://github.com/orgs/community/discussions/22399