You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matching request’s current url’s host per Known HSTS Host Domain Name Matching results in either a superdomain match with an asserted includeSubDomains directive or a congruent match (with or without an asserted includeSubDomains directive) [HSTS]
Please reopen. This issue was filed for the regression caused by #14360 (comment):
It removed the function that added received HSTS headers to the internal HSTS database. Since then, only Preloaded entries are applied. The PR that closed this issue did not add it back.
Activity
frewsxcv commentedon Nov 27, 2016
Relevant section:
https://fetch.spec.whatwg.org/#main-fetch
Part of step 9:
frewsxcv commentedon Dec 8, 2016
Related: #8580
Auto merge of #14716 - mrnayak:hsts, r=<try>
Auto merge of #14716 - mrnayak:hsts, r=<try>
Auto merge of #14716 - mrnayak:hsts, r=jdm
servo: Merge #14716 - Implement HSTS fetch step (from mrnayak:hsts); …
servo: Merge #14716 - Implement HSTS fetch step (from mrnayak:hsts); …
servo: Merge #14716 - Implement HSTS fetch step (from mrnayak:hsts); …
servo: Merge #14716 - Implement HSTS fetch step (from mrnayak:hsts); …
Darkspirit commentedon Dec 24, 2019
Please reopen. This issue was filed for the regression caused by #14360 (comment):
It removed the function that added received HSTS headers to the internal HSTS database. Since then, only Preloaded entries are applied. The PR that closed this issue did not add it back.
Only these cases are tested:
Not tested:
Likely not tested:
Originally I was just asking myself, if ws:// gets upgraded to wss:// by current code. It doesn't seem so.
https://fetch.spec.whatwg.org/#websocket-opening-handshake
This upgrades http to https:
servo/components/net/fetch/methods.rs
Lines 262 to 268 in 8002c6b
If websocket requests go through this function, ws to wss upgrades could be done here as well:
servo/components/net/hsts.rs
Lines 141 to 152 in f1dd31f
Otherwise, a call to switch_known_hsts_host_domain_url_to_https() could be added after this code:
servo/components/net/websocket_loader.rs
Lines 195 to 201 in 8002c6b
jdm commentedon Dec 24, 2019
Thanks for checking!
Darkspirit commentedon Dec 24, 2019
Along this, it would be good to add these prefs to
switch_known_hsts_host_domain_url_to_https():"network.enforce_https.enabled": false,with the following exceptions:"network.enforce_https.localhost": false,(incl. loopback IPs)"network.enforce_https.onion": false,This would also address #20120. The same should be done for Firefox: bug 1335590
Darkspirit commentedon Dec 25, 2019
@highfive assign me
highfive commentedon Dec 25, 2019
Hey @Darkspirit! Thanks for your interest in working on this issue. It's now assigned to you!
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey
Auto merge of #25404 - Darkspirit:hsts, r=asajeffrey