I have a react front end, and I can register and login, but when ever I try to make a post request on one of my forms it's always 403 Forbidden. I've narrowed it down to being the CSRF token causing this issue but I don't understand why it is. I have a get route that will get me a csrf token, then on my post request I add the csrf token in the headers along with my JWT token and things just begin to fall apart, I'm pretty lost at this point, and need some explanations and a point in the right direction.
My code
https://gist.github.com/CydoEntis/ceb3ee75b56e80c9a14e0711b74e38b3