Skip to content
Snippets Groups Projects
Commit e480833e authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix OPTIONS response cache control header name

parent 8b3de191
No related branches found
No related tags found
No related merge requests found
Pipeline #6232 passed
......@@ -12,7 +12,7 @@ class ApiFlask(Flask):
def make_default_options_response(self) -> Response:
response = super().make_default_options_response()
# max age is in seconds
response.headers["Cache-Control"] = f"max-age={60 * 60}"
response.headers["Access-Control-Max-Age"] = f"{60 * 60}"
return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment