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

[PROD] intermittent issues "Failed to fetch data" due to CORS error #1599

Open
nanometrenat opened this issue Dec 21, 2024 · 0 comments
Open
Assignees

Comments

@nanometrenat
Copy link
Collaborator

Issue

I am using the same computer+browser+internet connection that I generally use to access GO, but today I have been getting intermittent "Failed to fetch data" errors even when I know there is data there - e.g. on the home page - highlighted emergencies, key figures etc. I am logged in.

I turned on dev tools and can see an error message I've never seen before:

Access to fetch at 'https://goadmin.ifrc.org/api/v2/event/?is_featured=true' from origin 'https://go.ifrc.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.

The other odd thing I can see is that the user name in top right corner says "anonymous" - normally it should either have my name or else say "Log in" if I'm not logged in. See screenshot.
Having refreshed a few times I can see that normally when I'm first go to go.ifrc.org it shows anonymous for just a short moment before displaying my name. So it seems in this case things got stuck somewhere?
I don't think it's my internet connection as I'm on fast broadband.

Image

Steps to reproduce

This issue is intermittent - I've refreshed again and all is fine - but as it's happened more than once I figured it's worth investigating.

Expected behaviour

Page should load fine with all data

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

No branches or pull requests

2 participants