Skip to content

Instantly share code, notes, and snippets.

@jsmuster
Created December 28, 2018 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmuster/6562f81146dc3e928558a0ee9debc768 to your computer and use it in GitHub Desktop.
Save jsmuster/6562f81146dc3e928558a0ee9debc768 to your computer and use it in GitHub Desktop.
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment