forked from GithubBackups/healthchecks
Allow caching CORS responses.
This commit is contained in:
parent
e386ccaa0a
commit
35b137a8d7
@ -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…
x
Reference in New Issue
Block a user