4 my $method = $ENV{'REQUEST_METHOD'};
6 if ($method eq "OPTIONS") {
10 Content-Type: text/plain
13 } elsif ($method eq "GET") {
14 # Respond to simple cross-origin requests.
17 Content-Type: text/plain
18 Access-Control-Allow-Credentials: true
19 Access-Control-Allow-Origin: http://127.0.0.1:8000
24 # Return a status code that is different from the OPTIONS case so that
25 # layout tests can utilize it.
27 Status: 400 Bad Request
28 Content-Type: text/plain