From cb953acef68eb08b8c7e6ac0a9fbf7654fd74060 Mon Sep 17 00:00:00 2001 From: Andi Pieper Date: Wed, 9 Oct 2024 11:48:13 +0200 Subject: [PATCH] added cors allow-header --- httpobs/website/decorators.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httpobs/website/decorators.py b/httpobs/website/decorators.py index cb10996..0a3ab7f 100644 --- a/httpobs/website/decorators.py +++ b/httpobs/website/decorators.py @@ -91,6 +91,8 @@ def wrapper(*args, **kwargs): 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': ', '.join(request.url_rule.methods), 'Access-Control-Max-Age': '86400', + 'Access-Control-Allow-Headers': 'X-Deprecation-Override' + } )