reddit blocking access to threads with error about "blocked by network security"
Categories
(Web Compatibility :: Site Reports, defect)
Tracking
(firefox143 verified)
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | verified |
People
(Reporter: jesup, Unassigned, NeedInfo)
References
()
Details
Attachments
(1 file)
|
1.07 KB,
application/zip
|
Details |
https://webcompat.com/issues/171923
https://www.reddit.com/r/firefox/comments/1mqmsv5/your_request_has_been_blocked_by_network_security/
If you browse to https://www.reddit.com/r/firefox/comments/1mqmsv5/your_request_has_been_blocked_by_network_security/ in a private window, you'll get a red warning banner: "Your request has been blocked by network security. Please try to login with your Reddit account."
Note that logging in doesn't change this.
From a non-PB window, in a new profile, you (likely) will get the same message. An existing profile logged into reddit (usually) won't get it.
Switching to old.reddit.com makes it go away.
Comment 1•7 months ago
•
|
||
I suspect that preload may be related.
The body contains this (edit: original body contains preload):
<link rel="preload" href="/svc/shreddit/comments/r/firefox/t3_1mqmsv5?render-mode=partial&seeker-session=true" as="fetch" /> <link rel="preload" href="/svc/shreddit/pdp-right-rail/related/firefox/t3_1mqmsv5?render-mode=partial&seeker-session=true" as="fetch" />
If I create an extension that does str = str.replaceAll(/<link rel="preload" href="/g, "$&https://example.com/");, then the content loads fine.
If I drop the preload tag, str = str.replaceAll("preload", "perload");, then some error in Reddit happens and the page does not load (but there is no red banner either).
Comment 2•7 months ago
•
|
||
This extension fixes Reddit for me. See background.js
(Visit about:debugging to load it)
| Reporter | ||
Comment 3•7 months ago
|
||
Note that if I navigate to a thread in reddit, say from r/firefox, it works. If I take the same URL and paste it into the URLBar, I get the network error every time (testing in Private Browsing window, not logged int)
Comment 4•7 months ago
|
||
(In reply to Randell Jesup [:jesup] (needinfo me) from comment #3)
Note that if I navigate to a thread in reddit, say from r/firefox, it works. If I take the same URL and paste it into the URLBar, I get the network error every time (testing in Private Browsing window, not logged int)
The "navigate" by clicking is not a full page navigation, but JavaScript + history.pushState.
Even after navigating, if you then reload the page, the bug re-occurs. I strongly suspect the preload tag in the HTML source of the document, because manually cutting it out (with an extension - comment 1 & comment 2) causes the bug to disappear.
Comment 5•7 months ago
|
||
about:logging with the following preset (Network + Fetch + PreloadService):
https://share.firefox.dev/3Jjc52Q
(MOZ_LOG=timestamp,sync,nsHttp:5,cache2:5,nsSocketTransport:5,nsHostResolver:5,EarlyHint:5,Fetch:5,PreloadService:5 )
Comment 6•7 months ago
|
||
Just chiming in from the Reddit traffic team to say we're aware of this issue and are actively looking at it from our side.
Comment 7•7 months ago
|
||
It seems if I set network.http.http2.enabled to false in about:config the problem goes away.
So it seems to be something specific to our H2 implementation.
Comment 8•7 months ago
|
||
Reddit also announced that they are working on it at https://www.reddit.com/r/RedditBugs/comments/1mr2w7f/webfirefox_some_firefox_users_are_reporting_a/
[Web/Firefox] Some Firefox users are reporting a "blocked by network security" error
Investigating
Report(s)
Hey folks - we're aware that some of you are receiving a "blocked by network security" error across some pages on www.reddit.com. Just confirming that we're actively investigating the issue, and I'll post updates here as we get closer to resolving things.
Updated•7 months ago
|
Comment 9•7 months ago
|
||
I and another colleague cannot reproduce this issue any more.
Brian, could you confirm that you have rolled out a fix?
Do you also know the cause of the issue, and is this something that Firefox could/should investigate/fix?
Comment 10•7 months ago
|
||
Reddit has rolled out a mitigation while we investigate a permanent solution.
I don't think there's any action needed from Firefox on this.
Updated•7 months ago
|
Comment 11•7 months ago
|
||
Hi Brian,
Thank you for the quick fix.
When possible, we'd appreciate it if you could let us know what caused the problem. I'm curious whether other websites might also be affected by it, and whether Firefox needs to take steps to mitigate such issues.
Thanks!
Comment 12•6 months ago
|
||
I'm witnessing the same issue again: Reddit posts cannot be loaded, unless I trigger a navigation from a subreddit to a post. E.g. click on a post in /r/firefox and it loads, reload the page and it fails again with "Your request has been blocked by network security. Please try to login with your Reddit account."
Comment 13•6 months ago
|
||
^ The renewed instance of the issue appears to have been resolved.
Comment 14•6 months ago
|
||
Verified, the issue no longer reproduces.
Tested with:
- Browser / Version: Firefox 143.0-candidate build 1
- Operating System: MacOS Sequoia 15.6.1
Updated•6 months ago
|
Description
•