Skip to content

Commit

Permalink
improve the example for no-referrer-when-downgrade policy (mdn#35997)
Browse files Browse the repository at this point in the history
docs(referrer-policy): improve the example of no-referrer-when-downgrade referrer-policy

https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade
the specification allows Referer header to be added when the referrer-URL is a non-potentially trustworthy URL, regardless of the potential trustworthiness of referred-URL

Co-authored-by: Thilak <[email protected]>
  • Loading branch information
Thilak-KN and Thilak-KN authored Sep 30, 2024
1 parent a845f9d commit 6935404
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions files/en-us/web/http/headers/referrer-policy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ CSS can fetch resources referenced from stylesheets. These resources follow a re

### `no-referrer-when-downgrade`

| From document | Navigation to | Referrer used |
| -------------------------- | ------------------------------- | -------------------------- |
| `https://example.com/page` | `https://example.com/otherpage` | `https://example.com/page` |
| `https://example.com/page` | `https://mozilla.org` | `https://example.com/page` |
| `https://example.com/page` | **http**://example.com | _(no referrer)_ |
| From document | Navigation to | Referrer used |
| --------------------------- | ------------------------------- | -------------------------- |
| `https://example.com/page` | `https://example.com/otherpage` | `https://example.com/page` |
| `https://example.com/page` | `https://mozilla.org` | `https://example.com/page` |
| `https://example.com/page` | **http**://example.com | _(no referrer)_ |
| **http**://example.com/page | _anywhere_ | `http://example.com/page` |

### `origin`

Expand Down

0 comments on commit 6935404

Please sign in to comment.