Update: Remove Allow from res
This commit is contained in:
parent
a9c959bf3f
commit
3febde57bb
1 changed files with 0 additions and 8 deletions
|
|
@ -3,14 +3,6 @@ const app = express();
|
|||
const port = process.env.PORT || 3000;
|
||||
|
||||
const cors = require('cors');
|
||||
|
||||
app.use(function(req, res, next) {
|
||||
res.header("Access-Control-Allow-Origin", 'https://admin-polynotfound.herokuapp.com');
|
||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
||||
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
|
||||
next();
|
||||
});
|
||||
|
||||
app.use(cors({
|
||||
origin: 'https://admin-polynotfound.herokuapp.com',
|
||||
credentials: true
|
||||
|
|
|
|||
Reference in a new issue