From c905dd05b884b78927d6fe28fd477e07627569e4 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Fri, 17 Jan 2020 00:46:02 -0800 Subject: [PATCH] patch server production env allowed origin --- packages/server/server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/server/server.js b/packages/server/server/server.js index 6b81972..41c3dea 100644 --- a/packages/server/server/server.js +++ b/packages/server/server/server.js @@ -19,7 +19,7 @@ const apiRouter = require('./routes/api'); const app = express(); -const allowedOrigin = process.env.NODE_ENV === 'production' ? env.REACT_ADDRESS : '*'; +const allowedOrigin = process.env.NODE_ENV === 'production' ? process.env.REACT_ADDRESS : '*'; const corsOptions = { origin: allowedOrigin }