blob: 8a54500873c35c435aba676d7f0f9e9a0a9e08fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#! /usr/bin/env python
from SimpleHTTPServer import SimpleHTTPRequestHandler, test
class CORSHTTPRequestHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header('Access-Control-Allow-Origin', '*')
super(CORSHTTPRequestHandler, self).end_headers(self)
if __name__ == '__main__':
test(HandlerClass=CORSHTTPRequestHandler)
|