You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSP test judges page scheme by requested URL instead of final URL #683
What information was incorrect, unhelpful, or incomplete?
The CSP test decides whether the page is served over HTTPS from requests.session.url, the URL that was requested, not the URL the page was served from after redirects (src/analyzer/tests/csp.js). The HTTPS session is used whenever the site answers over HTTPS, so a site whose HTTPS URL redirects to an HTTP page is still treated as HTTPS, and http: sources in its policy are flagged as csp-implemented-with-insecure-scheme even though the page itself is served over HTTP.
What did you expect to see?
The page scheme is taken from the final URL of the redirect chain (Session.finalUrl), consistent with the subresource integrity test.
Do you have any supporting links, references, or citations?
Activity