Bug 1080987 - navigator.sendBeacon() needs to sent origin header (r=sicking)

This commit is contained in:
Christoph Kerschbaumer 2014-11-19 16:03:39 -08:00
parent ff2a74778a
commit fbe4dd3cdf

View File

@ -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);