Skip to content

Instantly share code, notes, and snippets.

@magnoliabox magnoliabox/cors-options.pl Secret
Created Feb 14, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.