secret
Created

respond to HTTP OPTIONS verb with headers for CORS

  • Download Gist
cors-options.pl
Perl
1 2 3 4 5
#!/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";

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.