Skip to content

Domain restrictions semantics #1474

@ameshkov

Description

@ameshkov

If the following conditions are true:

  • pattern === ANY_URL
  • domain resriction is not empty
  • resource type ===(SUB)DOCUMENT

Then use the host of the request URL to check domain restrictions.

Test rules:

  • $csp=script-src 'none',domain=example.org
  • $cookie=test,domain=example.org
In the case when there's no "source" hostname, `$domain` should be checked against the request's host.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions