patch server production env allowed origin
This commit is contained in:
parent
0ba2e2acdc
commit
44636cf4f5
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const apiRouter = require('./routes/api');
|
||||||
|
|
||||||
const app = express();
|
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 = {
|
const corsOptions = {
|
||||||
origin: allowedOrigin
|
origin: allowedOrigin
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue