Is there a simple way to disable CSRF validation in the KeystoneJS framework?
I ask for development purposes only. Just to avoid having to reload the client every time the server restarts.
If there isn't any exposed configuration option in Keystone, is there a work around in Express?
Option to disable CSRF validation in KeystoneJs?
nr: #1 dodano: 2017-12-13 19:12
It doesn't disable the CSRF validation, but if you use your mongo instance as the session store, then you can restart the server to your heart's content without getting the CSRF errors in the Admin UI.
You can use the session store option in your keystone.js file: