Skip to content

Commit

Permalink
[#1] Update whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
dedenbangkit committed Nov 8, 2024
1 parent e4eb8fc commit 400dab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ckanext-agra-theme/ckanext/agra_theme/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 400dab2

Please sign in to comment.