Add CORS response header

This commit is contained in:
Michal Migurski
2022-07-27 11:15:16 -07:00
committed by GitHub
parent c161c01322
commit f944b6f1c9

View File

@@ -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: