For security purpose please use this library to implement it. https://dev.to/adelhamad/csrf-protection-in-nextjs-1g1m
For security purpose please use this library to implement it.
https://dev.to/adelhamad/csrf-protection-in-nextjs-1g1m