Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.use(function (req, res, next) {
- res.header("Access-Control-Allow-Origin", '*');
- res.header("Access-Control-Allow-Credentials", true);
- res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
- res.header("Access-Control-Allow-Headers", 'Origin,X-Requested-With,Content-Type,Accept,content-type,application/json');
- next();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement