From 400dab2778ba9af34a3650cd81afa9a26653e65d Mon Sep 17 00:00:00 2001 From: dedenbangkit Date: Fri, 8 Nov 2024 12:48:28 +0700 Subject: [PATCH] [#1] Update whitelist --- src/ckanext-agra-theme/ckanext/agra_theme/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ckanext-agra-theme/ckanext/agra_theme/plugin.py b/src/ckanext-agra-theme/ckanext/agra_theme/plugin.py index 31e8f4c..6e93afd 100644 --- a/src/ckanext-agra-theme/ckanext/agra_theme/plugin.py +++ b/src/ckanext-agra-theme/ckanext/agra_theme/plugin.py @@ -35,8 +35,9 @@ def __call__(self, environ, start_response): "/user/login", # Login page "/user/reset", # Reset password page "/about", + "/download/", ] - resource_paths = ["/base/", "/public/", "/fanstatic/", "/download/"] + resource_paths = ["/base/", "/public/", "/fanstatic/"] allowed_resource = [".jpg", ".png", ".css", ".js"] if path.startswith(tuple(resource_paths)) or path.endswith( tuple(allowed_resource)