I have a site that is using Craft CMS headless and React. There are a few forms that need to post to controllers but I'm not sure how to set up the CSRF tokens and keep it secure.
Can anyone advise me on how to manage this?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityTake a look at the craft documentation for this: https://craftcms.com/guides/enabling-csrf-protection#updating-your-javascript it should point you in the right direction.