Commit eb498369 authored by Mark Harding's avatar Mark Harding

(chore): remove XSRF for GET and only use for modifiers

parent b08a0e7b
No related merge requests found
Pipeline #117617396 waiting for delayed job with stages
in 8 minutes and 47 seconds
......@@ -17,8 +17,8 @@ class XSRF
public static function validateRequest()
{
if (!Core\Session::isLoggedIn() && $_SERVER['REQUEST_METHOD'] === 'GET') {
return true; // If logged out and GET request we can accept
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
return true; // XSRF only needed for modifiers
}
if (!isset($_SERVER['HTTP_X_XSRF_TOKEN'])) {
......
Please register or to comment