From ca43baf1810c972ea93134b87e5a796f79c7ab59 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/server/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/server/server.js b/packages/server/server/server.js index 87e4704..0a85883 100644 --- a/packages/server/server/server.js +++ b/packages/server/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));