Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS header Access-Control-Allow-Origin missing some of the time #135

Open
publicsite opened this issue Sep 27, 2024 · 2 comments
Open

CORS header Access-Control-Allow-Origin missing some of the time #135

publicsite opened this issue Sep 27, 2024 · 2 comments
Labels

Comments

@publicsite
Copy link

publicsite commented Sep 27, 2024

Hi, some of the time the request works, and some of the time I get the following error. It's almost 50/50:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.allorigins.win/json?url=https://myurl.org. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500

@gnuns gnuns added the bug label Sep 28, 2024
@Bizarrus
Copy link

I have the same issue.

@publicsite
Copy link
Author

I'm not 100% sure but when I tried fetch API using javascript, rather than XML HttpRequest, the problem of intemittantly missing Access-Control-Allow-Origin header seemed to dissapear. Ie. the fetch API perhaps seemed to be better and not have this same problem. Unfortunately I can't test this further at the moment because I am now getting 502 upon request, for which I have filed another bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants