Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Upgrade insecure requests #2174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion features/csp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,5 @@ compat_features:
- http.headers.Content-Security-Policy.style-src-attr
- http.headers.Content-Security-Policy.style-src-elem
- http.headers.Content-Security-Policy.unsafe-hashes
- http.headers.Content-Security-Policy.upgrade-insecure-requests
- http.headers.Content-Security-Policy.worker-src
- http.headers.Content-Security-Policy.worker_support
13 changes: 0 additions & 13 deletions features/csp.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,6 @@ compat_features:
# safari_ios: "9.3"
- http.headers.Content-Security-Policy.frame-ancestors

# baseline: high
# baseline_low_date: 2018-04-30
# baseline_high_date: 2020-10-30
# support:
# chrome: "43"
# chrome_android: "43"
# edge: "17"
# firefox: "42"
# firefox_android: "42"
# safari: "10.1"
# safari_ios: "10.3"
- http.headers.Content-Security-Policy.upgrade-insecure-requests

# baseline: high
# baseline_low_date: ≤2018-10-02
# baseline_high_date: ≤2021-04-02
Expand Down
10 changes: 0 additions & 10 deletions features/draft/spec/upgrade-insecure-requests.yml

This file was deleted.

17 changes: 0 additions & 17 deletions features/draft/spec/upgrade-insecure-requests.yml.dist

This file was deleted.

7 changes: 7 additions & 0 deletions features/upgrade-insecure-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Upgrade insecure requests
description: The `Upgrade-Insecure-Requests` HTTP header instructs a user agent to upgrade insecure resource requests to secure transport before fetching them.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec and docs make this sound like a request header. I think it's something like this?

Suggested change
description: The `Upgrade-Insecure-Requests` HTTP header instructs a user agent to upgrade insecure resource requests to secure transport before fetching them.
description: The `Upgrade-Insecure-Requests` HTTP request header tells the server that the response should redirect to a secure (HTTPS) resource.

spec: https://w3c.github.io/webappsec-upgrade-insecure-requests/
group: security
compat_features:
- http.headers.Upgrade-Insecure-Requests
- http.headers.Content-Security-Policy.upgrade-insecure-requests
42 changes: 42 additions & 0 deletions features/upgrade-insecure-requests.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated from: upgrade-insecure-requests.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: high
baseline_low_date: 2018-04-30
baseline_high_date: 2020-10-30
support:
chrome: "44"
chrome_android: "44"
edge: "17"
firefox: "48"
firefox_android: "48"
safari: "10.1"
safari_ios: "10.3"
compat_features:
# baseline: high
# baseline_low_date: 2018-04-30
# baseline_high_date: 2020-10-30
# support:
# chrome: "43"
# chrome_android: "43"
# edge: "17"
# firefox: "42"
# firefox_android: "42"
# safari: "10.1"
# safari_ios: "10.3"
- http.headers.Content-Security-Policy.upgrade-insecure-requests

# ⬇️ Same status as overall feature ⬇️
# baseline: high
# baseline_low_date: 2018-04-30
# baseline_high_date: 2020-10-30
# support:
# chrome: "44"
# chrome_android: "44"
# edge: "17"
# firefox: "48"
# firefox_android: "48"
# safari: "10.1"
# safari_ios: "10.3"
- http.headers.Upgrade-Insecure-Requests