mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
add authorization header to CORS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user