From e4d4652d1bbcdf6531a70bea2d9933a5fa6e87d7 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/packages/play-node-go/server/server.js | 2 +- 1 file changed, 1 insertion(+), 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 6b81972..41c3dea 100644 --- a/packages/server/packages/play-node-go/server/server.js +++ b/packages/server/packages/play-node-go/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 }