Relative Content

Tag Archive for node.jscors

React frontend, node backend: Cors policy error

I have recently built a new project which has react on the frontend and a node js server as the backend. The API calls worked on localhost with cors but when I published to vercel i keep running into the same error no matter how much i change my cors settings. If anyone knows how to fix this error:

Cors block my connection from other device

i’m try to connect to my project but i can only connect using localhost adress if try to connect with other device in the same wifi network with the below listed ip cors block them. What im doing wrong in my code?