The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

Error with CSRF token in logout #46

Closed tsmanagers closed 6 months ago

tsmanagers commented 10 months ago

Hi,

I installed the Raven app in production mode but when I try to log out I am getting an error related to CSRF.

csrf

Thank ou for any help in advanced.

nikkothari22 commented 10 months ago

Hey @tsmanagers - is this running on Frappe Cloud or on your local bench? Can you provide more information about your environment? Are you running a React server or is this running on the Frappe server at /raven? Is this the mobile app PWA or the web app?

tsmanagers commented 10 months ago

We are using self-hosted ERPNext version 14 on the Ubuntu server. Erpnext is running on https://erp.abc.com and React dashboard is running on https://erp.abc.com/dashboard

nikkothari22 commented 10 months ago

You mentioned that you were having issues with Raven, but it seems like you have set up the React app using Doppio?

If yes, then you need to check for the CSRF token and whether it's being passed in your network request (headers tab in the request details in inspector)