Skip to content

CSP test judges page scheme by requested URL instead of final URL #683

Backlog

Description

@caugner

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?

Related to #559

Do you have anything more you want to share?

No response

Activity

  1. added
    needs triage
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions