Bug 679772 - Send cookies and HTTP auth with CSP report requests, r=dveditz

This commit is contained in:
Brandon Sterne 2011-08-24 09:53:56 -07:00
parent 872f549d6a
commit 6966c670a3

View File

@ -312,12 +312,6 @@ ContentSecurityPolicy.prototype = {
req.upload.addEventListener("error", failure, false);
req.upload.addEventListener("abort", failure, false);
// make request anonymous
// This prevents sending cookies with the request,
// in case the policy URI is injected, it can't be
// abused for CSRF.
req.channel.loadFlags |= Ci.nsIChannel.LOAD_ANONYMOUS;
req.send(JSON.stringify(report));
CSPdebug("Sent violation report to " + uris[i]);
} catch(e) {