Skip to content

Location of this check #2

@domenic

Description

@domenic

The current spec draft locates this after:

  • checks
    • local-URLs-only
    • CSP report-only reports
    • bad port
    • mixed content
    • CSP enforce
    • Integrity policy
  • request modifications
    • upgrade insecure requests
    • upgrade mixed content requests

It thus misses at least the following:

  • checks
    • "same-origin" mode check
    • non-HTTP(S) schemes check
  • request modifications
    • referrer determination
    • HSTS

as well as possibly other harder-to-classify stuff in step 12, e.g. response tainting for "navigate", "websocket", or "no-cors" cases

Although a carefully-written OverrideResponseForRequest might be fine with these, e.g. if it makes sure to never inspect the referrer, include both http: and https: cases to deal with HSTS upgrades, never reacts to non-HTTP(S) URLs, etc., I think it would be better spec architecture if the hook was inserted later.

My suggestion is that it should be located near the top of HTTP fetch, but I don't guarantee this is the very best place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions