From 09e5b5d888b7b79983a262baafd885e2a99877b0 Mon Sep 17 00:00:00 2001 From: Murray Christopherson Date: Wed, 13 Sep 2023 19:29:58 -0700 Subject: [PATCH] Check the correct header for the `strictTransportPolicy` property See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security --- api/http-security.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http-security.js b/api/http-security.js index 77daf5a..2f8370a 100644 --- a/api/http-security.js +++ b/api/http-security.js @@ -8,7 +8,7 @@ const handler = async (url) => { const response = await axios.get(fullUrl); const headers = response.headers; return { - strictTransportPolicy: headers['strict-transport-policy'] ? true : false, + strictTransportPolicy: headers['strict-transport-security'] ? true : false, xFrameOptions: headers['x-frame-options'] ? true : false, xContentTypeOptions: headers['x-content-type-options'] ? true : false, xXSSProtection: headers['x-xss-protection'] ? true : false,