No 'Access-Control-Allow-Origin' header is present on the requested resource


I am using Expo web to create a web version of my mobile app, also done with Expo.

I managed to get the fetch requests to my local api to work around the CORS but I run into an issue when trying to load some visual assets (an SVG in this case)

Access to fetch at '' from origin 'http://localhost:19006' 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.

Any idea how to fix this?

It turned out to be an issue with Django serving my static files directly, ignoring my server’s CORS policy.
This solved it for me: Django CORS on static asset - Stack Overflow

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.