Skip to content

Commit

Permalink
Merge pull request #53 from murrple-1/murrple-1-patch-1
Browse files Browse the repository at this point in the history
Check the correct header for the `strictTransportPolicy` property - Fixes #52
  • Loading branch information
Lissy93 authored Sep 14, 2023
2 parents ad57aaa + 09e5b5d commit f36ac56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/http-security.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f36ac56

Please sign in to comment.