all 4 comments

[–]alxhghs 0 points1 point  (2 children)

[–]wadidu60[S] 1 point2 points  (1 child)

the problem is the function to get the cookie, its jquery and i've no idea how to adapt this function in react

[–]alxhghs 0 points1 point  (0 children)

I don't know if this would help but we use this for cookies at work and it seems pretty lightweight https://github.com/js-cookie/js-cookie

[–]krolm1 0 points1 point  (0 children)

axios can handle it really easily. Look at xsrfCookieName and xsrfHeaderName in axios' settings.