mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 13:34:10 +02:00
Minor cleanup
This commit is contained in:
parent
5f6a7cd044
commit
17ac251c36
2 changed files with 3 additions and 8 deletions
|
@ -285,12 +285,12 @@ SERVER_EMAIL = "root@get.gov"
|
||||||
|
|
||||||
# Content-Security-Policy configuration
|
# Content-Security-Policy configuration
|
||||||
# this can be restrictive because we have few external scripts
|
# this can be restrictive because we have few external scripts
|
||||||
allowed_sources = ("'self'", "https://idp.int.identitysandbox.gov", "https://idp.int.identitysandbox.gov/openid_connect/logout")
|
allowed_sources = ("'self'")
|
||||||
CSP_DEFAULT_SRC = allowed_sources
|
CSP_DEFAULT_SRC = allowed_sources
|
||||||
# Most things fall back to default-src, but these two do not and should be
|
# Most things fall back to default-src, but these two do not and should be
|
||||||
# explicitly set
|
# explicitly set
|
||||||
CSP_FRAME_ANCESTORS = allowed_sources
|
CSP_FRAME_ANCESTORS = allowed_sources
|
||||||
CSP_FORM_ACTION = allowed_sources
|
CSP_FORM_ACTION = ("'self'", "https://idp.int.identitysandbox.gov/openid_connect/logout")
|
||||||
|
|
||||||
|
|
||||||
# Content-Length header is set by django.middleware.common.CommonMiddleware
|
# Content-Length header is set by django.middleware.common.CommonMiddleware
|
||||||
|
|
|
@ -47,7 +47,7 @@ urlpatterns = [
|
||||||
path("", views.index, name="home"),
|
path("", views.index, name="home"),
|
||||||
path(
|
path(
|
||||||
"admin/logout/",
|
"admin/logout/",
|
||||||
RedirectView.as_view(url="/openid/logout", permanent=False),
|
RedirectView.as_view(pattern_name="logout", permanent=False),
|
||||||
),
|
),
|
||||||
path("admin/", admin.site.urls),
|
path("admin/", admin.site.urls),
|
||||||
path(
|
path(
|
||||||
|
@ -125,11 +125,6 @@ if not settings.DEBUG:
|
||||||
path(
|
path(
|
||||||
"admin/login/", RedirectView.as_view(pattern_name="login", permanent=False)
|
"admin/login/", RedirectView.as_view(pattern_name="login", permanent=False)
|
||||||
),
|
),
|
||||||
# redirect to login.gov
|
|
||||||
path(
|
|
||||||
"admin/logout/",
|
|
||||||
RedirectView.as_view(pattern_name="logout", permanent=False),
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# we normally would guard these with `if settings.DEBUG` but tests run with
|
# we normally would guard these with `if settings.DEBUG` but tests run with
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue