Adds API endpoint for checking HSTS headers

This commit is contained in:
Alicia Sykes
2023-07-16 23:42:22 +01:00
parent 77b8feb435
commit 7727106d46
2 changed files with 68 additions and 0 deletions

View File

@@ -104,6 +104,11 @@
to = "/.netlify/functions/dns-sec"
status = 301
force = true
[[redirects]]
from = "/check-hsts"
to = "/.netlify/functions/check-hsts"
status = 301
force = true
# For router history mode, ensure pages land on index
[[redirects]]