mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 11:27:38 +08:00
allow all origins
This commit is contained in:
@@ -289,6 +289,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
"""
|
||||
self.send_response(status_code)
|
||||
self.send_header('content-type', content_type)
|
||||
self.send_header('Access-Control-Allow-Origin', '*') # CORS
|
||||
self.end_headers()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user