Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
273
Merge Requests
34
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
eb498369
Commit
eb498369
authored
3 minutes ago
by
Mark Harding
Browse files
Options
Download
(chore): remove XSRF for GET and only use for modifiers
parent
b08a0e7b
master
No related merge requests found
Pipeline
#117617396
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Core/Security/XSRF.php
View file @
eb498369
...
...
@@ -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'
]))
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment