fmbenhassine / gamehub.io

Real-time multiplayer game server based on Node + Express + SocketIO + MongoDB + ElasticSearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enable cross-origin resource sharing

fmbenhassine opened this issue · comments

Currently, the application works fine in a local environment.

As soon as the client and server are deployed on separate machines, a Cross Origin Request error occurs. This can be fixed by enabling cross-origin resource sharing. See here:

http://enable-cors.org/server_expressjs.html