Update: Move Cors to Routes
This commit is contained in:
parent
3db7bfd7af
commit
c6e02cf797
3 changed files with 20 additions and 21 deletions
10
server.js
10
server.js
|
|
@ -2,11 +2,11 @@ const express = require('express');
|
|||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
const cors = require('cors');
|
||||
app.use(cors({
|
||||
origin: 'https://admin-polynotfound.herokuapp.com',
|
||||
credentials: true
|
||||
}));
|
||||
//const cors = require('cors');
|
||||
//app.use(cors({
|
||||
// origin: 'https://admin-polynotfound.herokuapp.com',
|
||||
// credentials: true
|
||||
//}));
|
||||
|
||||
const cookieParser = require('cookie-parser');
|
||||
app.use(cookieParser());
|
||||
|
|
|
|||
Reference in a new issue