I am running a sailsjs app with pm2 and its cluster mode.
The problem now is that since I am making cross domain requests with CSRF validation, only one of the clusters has the right access, the others give me the "CSRF mismatch error".
How do you use the pm2 with CSRF?
sails.js has built-in support for using Redis or MongoDB to share session state across a cluster, for example with modulus.io, Heroku, or a self-hosted cluster using pm2. You can set the configuration values for this in config/session.js.
See:
config/session.js referenceconfig/csrf.js referenceIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With