]> git.cworth.org Git - empires-server/commit
Use the cors package to set a permissive CORS header
authorCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 02:28:12 +0000 (19:28 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 3 May 2020 02:28:12 +0000 (19:28 -0700)
commita9ee4bde54f18af362198906f5684f519883640a
tree51ce5e9cd5c133c474b588bf26925afb916377bf
parent1f29788b3bfa3f7ddeb2b49b57cab005c56e0412
Use the cors package to set a permissive CORS header

Specifically, with this change the server will emit a header of:

Access-Control-Allow-Origin: *

allowing requests to come from anywhere (for now).

This was necessary in the testing that Kevin is currently doing (where
he his hosting his test front-end spearately from the server).
server.js