Update server.js

This commit is contained in:
Yûki VACHOT 2021-12-22 21:29:05 +01:00 committed by GitHub
parent 6ce49daa9a
commit 965f1c03e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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