Add a map

So you can check you’ve chosen the right areas, and to give you a clear
idea of where the boundaries of an area are.

The Javascript and CSS for the map is only loaded on this page because
it adds quite a few kb, and we don’t want to be sending assets to the
majority of our users who will never see them.
This commit is contained in:
Chris Hill-Scott
2020-07-06 10:53:14 +01:00
parent 18d464d4f0
commit d0d3fc6857
4 changed files with 52 additions and 8 deletions

View File

@@ -20,7 +20,8 @@ def test_owasp_useful_headers_set(
"object-src 'self';"
"font-src 'self' static.example.com data:;"
"img-src "
"'self' static.example.com *.google-analytics.com *.notifications.service.gov.uk static-logos.test.com data:;"
"'self' static.example.com *.tile.openstreetmap.org *.google-analytics.com"
" *.notifications.service.gov.uk static-logos.test.com data:;"
"frame-src 'self' www.youtube-nocookie.com;"
)
@@ -41,7 +42,8 @@ def test_headers_non_ascii_characters_are_replaced(
"connect-src 'self' *.google-analytics.com;"
"object-src 'self';"
"font-src 'self' static.example.com data:;"
"img-src "
"'self' static.example.com *.google-analytics.com *.notifications.service.gov.uk static-logos??.test.com data:;"
"img-src"
" 'self' static.example.com *.tile.openstreetmap.org *.google-analytics.com"
" *.notifications.service.gov.uk static-logos??.test.com data:;"
"frame-src 'self' www.youtube-nocookie.com;"
)