Skip to content

Instantly share code, notes, and snippets.

@JimAllanson
Created August 13, 2013 16:40
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 JimAllanson/d7056f202125dbc1ed8c to your computer and use it in GitHub Desktop.
Save JimAllanson/d7056f202125dbc1ed8c to your computer and use it in GitHub Desktop.
app.options('*', function(req,res){
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');
res.send(200);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment