Skip to content

Commit

Permalink
Add django-csp, allow admin to uncomment middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt committed Jan 28, 2025
1 parent a926043 commit 3b37d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions afrc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"arches.app.utils.middleware.SetAnonymousUser",
# "silk.middleware.SilkyMiddleware",
# "csp.middleware.CSPMiddleware",
]

MIDDLEWARE.insert( # this must resolve to first MIDDLEWARE entry
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ classifiers = [
requires-python = ">=3.10"
dependencies = [
"arches>=7.6.2,<7.7.0",
"django_csp==3.8",
]
version = "0.0.1"

Expand Down

0 comments on commit 3b37d4b

Please sign in to comment.