developit / redaxios

The Axios API, as an 800 byte Fetch wrapper.

Home Page:https://npm.im/redaxios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fetch blocked by CORS policy

reinisg opened this issue · comments

Hello,
this redaxios is great. We replaced axios with redaxios, globally all working fine (GET, POST, DELETE methods).
But there appeared new issue with PATCH. Here is console error.
This issue not appearing if switch back to axios.

What actually we need to prepare some change from server or only some fixes in request?

Regards, Reinis

I've recently encountered an issue similar to this.
However the issue wasn't with redaxios but with Laravel.
Due to some technicalities with Laravel (I'm not exactly sure what) we've had to "patch the PATCH method" ourselves, and in doing this the server would look for PATCH not patch (case sensitive). The fix for me was to uppercase the HTTP method always

This is fixed by #71.