Skip to content
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

Fetch blocked by CORS policy #74

Closed
reinisg opened this issue Nov 13, 2021 · 2 comments · Fixed by #71
Closed

Fetch blocked by CORS policy #74

reinisg opened this issue Nov 13, 2021 · 2 comments · Fixed by #71
Labels
has fix A fix is PR'd or merged, but not yet released

Comments

@reinisg
Copy link

reinisg commented Nov 13, 2021

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

@donlion
Copy link
Contributor

donlion commented Mar 1, 2022

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

@developit
Copy link
Owner

This is fixed by #71.

@developit developit linked a pull request Apr 29, 2022 that will close this issue
@developit developit added the has fix A fix is PR'd or merged, but not yet released label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has fix A fix is PR'd or merged, but not yet released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants