You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the code in the server.cc works well using curl calls. However, when I have a client that sends a request to the server which updates the things in a database, there is a CORS issue that prevents the request from going through. I have tried using res.set_header("Access-Control-Allow-Origin", "*"); but the same error message keeps popping up. I'm not sure what I am missing at this point.
I have the res.set_header() line but the error message shows that it isn't detected. I've also searched in closed issues and didn't really get much help from that.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
server.cc:
App.js:
Currently, the code in the server.cc works well using curl calls. However, when I have a client that sends a request to the server which updates the things in a database, there is a CORS issue that prevents the request from going through. I have tried using

res.set_header("Access-Control-Allow-Origin", "*");
but the same error message keeps popping up. I'm not sure what I am missing at this point.I have the res.set_header() line but the error message shows that it isn't detected. I've also searched in closed issues and didn't really get much help from that.
The text was updated successfully, but these errors were encountered: