daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top