Update server.js
This commit is contained in:
parent
6ce49daa9a
commit
965f1c03e9
1 changed files with 1 additions and 4 deletions
|
|
@ -12,10 +12,7 @@ app.use(bodyParser.json());
|
||||||
|
|
||||||
const cors = require('cors');
|
const cors = require('cors');
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: [
|
origin: true,
|
||||||
'https://polynotfound.herokuapp.com/', 'http://127.0.0.1:4200',
|
|
||||||
'https://admin-polynotfound.herokuapp.com/', 'http://127.0.0.1:4201'
|
|
||||||
],
|
|
||||||
credentials: true
|
credentials: true
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue