From 516c2cdf8132e337b2fb7a245a42d7d165ce0d4a Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 18 Jun 2022 09:26:05 +0100 Subject: [PATCH] Buxfix: static folders bypass cookie consent --- ref-test/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref-test/main.py b/ref-test/main.py index aa270a9..40826af 100644 --- a/ref-test/main.py +++ b/ref-test/main.py @@ -36,7 +36,7 @@ def create_app(): def _check_cookie_consent(): if request.cookies.get('cookie_consent'): return - if any([ request.path.startswith(x) for x in [ '/admin/static/', '/static/', '/cookies/' ] ]): + if any([ request.path.startswith(x) for x in [ '/admin/static/', '/root/', '/quiz/static', '/cookies/' ] ]): return flash(f'Cookie Consent: This web site only stores minimal, functional cookies. It does not store any tracking information. By using this site, you consent to this use of cookies. For more information, see our privacy policy.', 'cookie_alert')