Skip to content

Instantly share code, notes, and snippets.

@magnoliabox magnoliabox/ Secret
Created Feb 14, 2011

What would you like to do?
respond to HTTP OPTIONS verb with headers for CORS
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.