therewillbecode / poker-maison

🂺 A Multiplayer Poker App Crafted with Haskell and React
309 stars 34 forks source link

disable CORS #14

Closed IvanKonevJr closed 4 years ago

IvanKonevJr commented 4 years ago

to XMLHttpRequest at 'http://1fd10247.ngrok.io/profile' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

How to disable CORS check?

therewillbecode commented 4 years ago

Try and use a chrome browser extension to disable CORS for your dev environment. Potentially the code should be changed such that CORS is disabled in dev envs.

IvanKonevJr commented 4 years ago

i will publish server on vps and get cors error, client on other vps