mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Issue #2914 - Explicitly allow mixed content websockets on localhost.
This carves out an exception for hard-coded loopback addresses to allow `ws:` connections from `https:` to allow mixed-mode from secure pages. Resolves #2914
This commit is contained in:
parent
32a50655cd
commit
aee2800d48
3 changed files with 19 additions and 10 deletions
|
|
@ -44,6 +44,7 @@ public:
|
|||
|
||||
// See:
|
||||
// https://w3c.github.io/webappsec-secure-contexts/#is-origin-trustworthy
|
||||
static bool IsPotentiallyTrustworthyLoopbackHost(const nsACString& aAsciiHost);
|
||||
static bool IsPotentiallyTrustworthyLoopbackURL(nsIURI* aURL);
|
||||
static bool IsPotentiallyTrustworthyOrigin(nsIURI* aURI);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue