Advertisement
Guest User

Untitled

a guest
Dec 6th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. app.use(function (req, res, next) {
  2. res.header("Access-Control-Allow-Origin", '*');
  3. res.header("Access-Control-Allow-Credentials", true);
  4. res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
  5. res.header("Access-Control-Allow-Headers", 'Origin,X-Requested-With,Content-Type,Accept,content-type,application/json');
  6. next();
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement