v1.3.0 #124
@ -6,7 +6,7 @@
|
||||
|
||||
// CHECK CSRF PROTECTION //
|
||||
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
|
||||
if($x_cookieless_csrf_protection !== "42"){
|
||||
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
|
||||
// show an excuse page
|
||||
Excuse::show("invalid_csrf_token");
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
// CHECK CSRF PROTECTION //
|
||||
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
|
||||
if($x_cookieless_csrf_protection !== "42"){
|
||||
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
|
||||
// show an excuse page
|
||||
Excuse::show("invalid_csrf_token");
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
// CHECK CSRF PROTECTION //
|
||||
$x_cookieless_csrf_protection = getallheaders()["x-cookieless-csrf-protection"] ?? null;
|
||||
if($x_cookieless_csrf_protection !== "42"){
|
||||
if(\Flake\Env::IS_PRODUCTION and $x_cookieless_csrf_protection !== "42"){
|
||||
// show an excuse page
|
||||
Excuse::show("invalid_csrf_token");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user