mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 08:48:39 +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
|
|
@ -319,6 +319,8 @@ public:
|
|||
public: /* Necko internal use only... */
|
||||
bool IsNavigation();
|
||||
|
||||
static bool IsReferrerSchemeAllowed(nsIURI *aReferrer);
|
||||
|
||||
// Return whether upon a redirect code of httpStatus for method, the
|
||||
// request method should be rewritten to GET.
|
||||
static bool ShouldRewriteRedirectToGET(uint32_t httpStatus,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue