From 891ba5ab2ff2b7522147664b3bdc5751fbd75084 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Sat, 18 Jan 2020 01:25:52 -0800 Subject: [PATCH] patch CORS --- packages/server/packages/play-node-go/server/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/packages/play-node-go/server/server.js b/packages/server/packages/play-node-go/server/server.js index 87e4704..0a85883 100644 --- a/packages/server/packages/play-node-go/server/server.js +++ b/packages/server/packages/play-node-go/server/server.js @@ -22,7 +22,8 @@ const app = express(); const allowedOrigin = process.env.REACT_ADDRESS; const corsOptions = { origin: allowedOrigin, - credentials: true + credentials: true, + methods: "GET,PUT,POST,DELETE" } app.options('*', cors(corsOptions));