From a9ee4bde54f18af362198906f5684f519883640a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 2 May 2020 19:28:12 -0700 Subject: [PATCH] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.js b/server.js index 4d71998..64694d8 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,9 @@ const express = require("express") +const cors = require("cors") const body_parser = require("body-parser"); const app = express(); +app.use(cors()) class Game { constructor() { -- 2.43.0