Create a gist now

Instantly share code, notes, and snippets.

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