evoluteur/evolutility-ui-react

CORS issue (Response for preflight is invalid)

nick-tate opened this issue · 4 comments

Running into an issue working with the React-UI and Node-Server backed on the same localhost for seemingly "non-simple" requests meaning all of the base GET API calls to the backend work fine, but trying to use the edit views for PUT API calls are getting interrupted. The React-UI will throw a Network Error - and digging into the developer console its looking like a CORS-related issue.

http://localhost:2000/api/V1/winecellar/5: Response for preflight is invalid (redirect)

I'm curious if anyone else has encountered this issue while trying to stand up the base apps.

Works fine for me. Windows 10.

It work fine for me on a Mac.
You may need to change the header options in app.js (lines 34 to 37) in Evolutility-Server-Node.

It should be filed in Evolutility-Server-Node rather than Evolutility-UI-React.
I'll close it here you can reopen it there.
Thanks.

Thanks for the replies. I'm not a seasoned developer so I'll keep playing around with it. It does seem more tied to my browser than anything. In Chrome (v. 69.0.3497.100) I would see this error about 90% of the attempts with some calls actually working as intended. I just switched over to Safari (v. 12) and everything seems to be working as it should.