Skip to content

Commit

Permalink
cors all
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur committed May 30, 2021
1 parent c9d1520 commit e9d2336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.listen(port, () => {
});
app.use(cors());
app.use( function(req, res, next) {
res.header('Access-Control-Allow-Origin', 'https://surveyor-ui.vercel.app/');
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header('Access-Control-Allow-Headers', 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept');
next();
Expand Down

1 comment on commit e9d2336

@vercel
Copy link

@vercel vercel bot commented on e9d2336 May 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.