cantierecreativo / redux-bees

A nice, short and declarative way to interact with JSON APIs
592 stars 41 forks source link

How can I set mode for fetch? #56

Open chienpingtsung opened 6 years ago

chienpingtsung commented 6 years ago

the customized header cannot support mode like configureHeaders(headers) { return { ...headers, mode: 'no-cors' } } how can i change fetch mode there

dlikhten commented 5 years ago

Really late response (lol 1 year later). If you look at https://github.com/cantierecreativo/redux-bees/blob/master/src/httpMethods.js#L26 you can see that the http method can take options, which will allow you to override mode.