OLD | NEW |
---|---|
1 #!/usr/bin/perl -wT | 1 #!/usr/bin/perl -wT |
2 use strict; | 2 use strict; |
3 | 3 |
4 print "Content-Type: text/html\n"; | 4 print "Content-Type: text/html\n"; |
5 print "Access-Control-Allow-Credentials: true\n"; | 5 print "Access-Control-Allow-Credentials: true\n"; |
6 print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n"; | 6 print "Access-Control-Allow-Origin: http://127.0.0.1:8000\n\n"; |
7 | 7 |
8 print "<html><body><h1>Hello, CORS!</h1></body></html>\n"; | 8 print "<html><body><h1>Hello, CORS!</h1></body></html>\n"; |
9 | |
OLD | NEW |