mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
Add CORS response header
This commit is contained in:
@@ -77,7 +77,10 @@ def lambda_handler(event, context):
|
||||
else:
|
||||
raise e
|
||||
|
||||
headers = {"Content-Type": "application/protobuf"}
|
||||
headers = {
|
||||
"Content-Type": "application/protobuf",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
}
|
||||
|
||||
if reader.header().metadata.get("compression") == "gzip":
|
||||
if is_api_gateway:
|
||||
|
||||
Reference in New Issue
Block a user