How can I enable cors in react app using axios?
Basically, you can’t, it’s something that is turned on on a server.
The other server that is also created in my local machine on just different port. I want to post some data and I cant do it now, is there no way at all?
So it’s just a server that you set up? Add a CORS header, just literally allow CORs. You can’t do it from the browser side
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.