blob: d3cb3c15d9b790e426aa7019af90c034630f21b7 [file] [log] [blame]
#!/usr/bin/perl -wT
use strict;
print "Cache-Control: no-store\n";
# This should be a simple request, deny preflight.
if ($ENV{'REQUEST_METHOD'} eq "POST") {
print "Access-Control-Allow-Credentials: true\n";
print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n";
print "Accept: $ENV{'HTTP_ACCEPT'}\n";
print "Accept-Language: $ENV{'HTTP_ACCEPT_LANGUAGE'}\n";
print "Content-Language: $ENV{'HTTP_CONTENT_LANGUAGE'}\n";
print "Content-Type: $ENV{'CONTENT_TYPE'}\n";
} else {
print "\n";
}