Commit 68e4f5a4 authored by Mark Harding's avatar Mark Harding

(fix): do not trigger a 401 upstream due to XSRF if on mobile

No related merge requests found
Pipeline #98151520 passed with stages
in 12 minutes and 12 seconds
......@@ -17,6 +17,10 @@ class XSRF
public static function validateRequest()
{
if (isset($_SERVER['HTTP_APP_VERSION'])) {
return true; // This is mobile
}
if (!isset($_SERVER['HTTP_X_XSRF_TOKEN'])) {
return false;
}
......
Please register or to comment