Skip to content

Instantly share code, notes, and snippets.

@magnoliabox
Created February 14, 2011 16:50
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 magnoliabox/17698f66e6305682a1dc to your computer and use it in GitHub Desktop.
Save magnoliabox/17698f66e6305682a1dc to your computer and use it in GitHub Desktop.
respond to HTTP OPTIONS verb with headers for CORS
#!/usr/bin/perl
print "Content-type: text/html\n";
print "Access-Control-Allow-Origin: *\n";
print "Access-Control-Allow-Methods: POST\n";
print "Access-Control-Max-Age: 1728000\n\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment