patch server production env allowed origin

This commit is contained in:
Sorrel Bri 2020-01-17 00:46:02 -08:00 committed by sorrelbri
parent e0a336bd35
commit c905dd05b8

View file

@ -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
}