Commit 3866dc3f by aagusti

allow-origin

1 parent cc722e2e
...@@ -95,7 +95,7 @@ def add_cors_headers_response_callback(event): ...@@ -95,7 +95,7 @@ def add_cors_headers_response_callback(event):
headers = { headers = {
'Access-Control-Allow-Methods': 'POST,GET,DELETE,PUT,OPTIONS', 'Access-Control-Allow-Methods': 'POST,GET,DELETE,PUT,OPTIONS',
'Access-Control-Allow-Headers': 'Origin, Content-Type, Accept, Authorization', 'Access-Control-Allow-Headers': 'Origin, Content-Type, Accept, Authorization',
'Access-Control-Allow-Credentials': 'true', # 'Access-Control-Allow-Credentials': 'true',
'Access-Control-Max-Age': '1728000', 'Access-Control-Max-Age': '1728000',
} }
log.info(f"{origin} {request.is_xhr}") log.info(f"{origin} {request.is_xhr}")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!