Skip to content

Commit

Permalink
Check the correct header for the strictTransportPolicy property
Browse files Browse the repository at this point in the history
  • Loading branch information
murrple-1 authored Sep 14, 2023
1 parent ad57aaa commit 09e5b5d
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 09e5b5d

Please sign in to comment.