Browse Source

Allow caching CORS responses.

pull/272/head
Pēteris Caune 5 years ago
parent
commit
35b137a8d7
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      hc/api/decorators.py

+ 1
- 0
hc/api/decorators.py View File

@ -109,6 +109,7 @@ def cors(*methods):
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Headers"] = "X-Api-Key"
response["Access-Control-Allow-Methods"] = methods_str
response["Access-Control-Max-Age"] = "600"
return response
return wrapper


Loading…
Cancel
Save