-
Notifications
You must be signed in to change notification settings - Fork 88
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
Set {mode:'no-cors'} in fetch #151
Comments
Hi. Use https://github.com/lexich/redux-api/blob/master/docs/DOCS.md#options for each endpoint or global interceptor for all endpoints https://github.com/lexich/redux-api/blob/master/docs/DOCS.md#options-1 |
Hi,
My code is:
|
When I do the same in console |
Hi I run the following code in console and it works. Could you please check again. When I used options mode no-cors in redux-api, it can fetch but it does not return data to state.audios ( null ) |
I open a new blank tab in Chrome to run the code |
Try this. |
Ok I see that. |
@lexich I have the same problem. If I have no I tested fetch in console with disabled CORS extension and enabled |
Hi @kolyasya There is no any content in your response. |
Hi, how can I set {mode:'no-cors'} in fetch because I have problem with CORS
"FETCH API cannot load
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
Thanks
The text was updated successfully, but these errors were encountered: