add authorization header to CORS

This commit is contained in:
Jude Nelson
2017-03-21 17:05:27 -04:00
parent cf70a9b8f6
commit 57c83cf6a8

View File

@@ -494,7 +494,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
self.send_response(200)
self.send_header('Access-Control-Allow-Origin', '*') # CORS
self.send_header('Access-Control-Allow-Methods', 'GET, PUT, POST, DELETE')
self.send_header('Access-Control-Allow-Headers', 'content-type')
self.send_header('Access-Control-Allow-Headers', 'content-type, authorization')
self.send_header('Access-Control-Max-Age', 21600)
self.end_headers()
return