jasonrobertfox / tictactoe

An unbeatable game of tic tac toe.
http://perfecttictactoe.herokuapp.com/
GNU General Public License v3.0
183 stars 44 forks source link

Cannot make a request from browser (CORS header missing) #5

Open freddydumont opened 7 years ago

freddydumont commented 7 years ago

When making a request from a browser, I get the following error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://perfecttictactoe.herokuapp.com/api/v2/play. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

I am currently relying on a proxy server to make requests. Would you consider setting your server so that it allows CORS?