How to fix the missing CSRF token error in Safari

CSRF stands for Cross-Site Request Forgery and is a type of web security vulnerability that can execute unwanted or malicious actions on a website that you’re logged into.

The Safari browser has protections built in to stop this vulnerability. When Safari is unable to a create or access a secure cookie whilst you are logged into your Maisie dashboard it will give you an error message “Invalid request due to CSRF token error” as it’s trying to protect our site.

This error is typically caused by you using the default Safari settings which doesn’t allow cookies.

To fix this error in your Safari browser:

safari browser privacy settings
  1. Open Safari Preferences from the drop-down menu in the upper right corner or via the command + comma (⌘ + ,) shortcut.
  2. Click the Privacy tab and make sure that the checkbox for “Cookies and website data” is not checked to “Block all cookies”.
  3. Click the “Manage Website Data..” button to see all website data and cookies stored on your computer.
  4. Search for “Maisie” and delete all Maisie-related entries.
  5. Quit then relaunch Safari.
  6. Log in to Maisie again.

That’s it! Your CSRF error issue should be resolved. If it isn’t the problem is likely to be due to any ad-blocking or anti-tracking browser extensions / plugins that you are using. You’ll need to check the documentation for the extension / plugin you’re using to learn how to ensure it permits cookies from Maisie.