Merge pull request #53 from murrple-1/murrple-1-patch-1

Check the correct header for the `strictTransportPolicy` property - Fixes #52
This commit is contained in:
Alicia Sykes 2023-09-14 20:34:44 +01:00 committed by GitHub
commit f36ac56370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,