[hotfix] disable csrf check for mobile
This commit is contained in:
parent
cf0d865e1d
commit
45583f30fe
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class HTTPRequest:
|
|||
|
||||
def validate_csrf_token(self):
|
||||
if frappe.local.request and frappe.local.request.method=="POST":
|
||||
if not frappe.local.session.data.csrf_token:
|
||||
if not frappe.local.session.data.csrf_token or frappe.local.session.data.device=="mobile":
|
||||
# not via boot
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue