mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1080987 - navigator.sendBeacon() needs to sent origin header (r=sicking)
This commit is contained in:
parent
ff2a74778a
commit
fbe4dd3cdf
@ -1200,6 +1200,9 @@ Navigator::SendBeacon(const nsAString& aUrl,
|
||||
principal,
|
||||
true);
|
||||
|
||||
rv = cors->Init(channel, true);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
|
||||
// Start a preflight if cross-origin and content type is not whitelisted
|
||||
rv = secMan->CheckSameOriginURI(documentURI, uri, false);
|
||||
bool crossOrigin = NS_FAILED(rv);
|
||||
|
Loading…
Reference in New Issue
Block a user