lighthouse-security icon indicating copy to clipboard operation
lighthouse-security copied to clipboard

Use original document's response headers instead of XHR

Open paulirish opened this issue 7 years ago • 0 comments

In the https://github.com/voorhoede/lighthouse-security/blob/master/gather/gatherers/response-headers.js there'a a request from node for the document page.

However the response headers of the original request are already provided. And cookies, etc are all taken care of.

Here's an example audit that uses its response headers: https://github.com/GoogleChrome/lighthouse/blob/fb2cb02b1ffe763a3048c8a50c6b12c14c4d43a1/lighthouse-core/audits/seo/is-crawlable.js#L94

paulirish avatar Dec 19 '17 19:12 paulirish