You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://localhost:1100 is run on spa-server,
i try to use window.fetch to get JSON file, but occur error:
Access to fetch at 'http://localhost:1100/examples.json' from origin 'http://localhost:1112' 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 text was updated successfully, but these errors were encountered:
http://localhost:1100 is run on spa-server,
i try to use window.fetch to get JSON file, but occur error:
Access to fetch at 'http://localhost:1100/examples.json' from origin 'http://localhost:1112' 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 text was updated successfully, but these errors were encountered: