mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
Issue #1975 - Implement Origin header CSRF mitigation.
Backported from Mozilla bug 446344.
This commit is contained in:
parent
3e6cbc6af3
commit
faa778ec9d
6 changed files with 82 additions and 15 deletions
|
|
@ -1491,6 +1491,10 @@ pref("network.http.referer.XOriginTrimmingPolicy", 0);
|
|||
// 0=always send, 1=send iff base domains match, 2=send iff hosts match
|
||||
pref("network.http.referer.XOriginPolicy", 0);
|
||||
|
||||
// Include an origin header on non-GET and non-HEAD requests regardless of CORS
|
||||
// 0=never send, 1=send when same-origin only, 2=always send
|
||||
pref("network.http.sendOriginHeader", 0);
|
||||
|
||||
// Controls whether referrer attributes in <a>, <img>, <area>, <iframe>, and <link> are honoured
|
||||
pref("network.http.enablePerElementReferrer", true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue