2021 Mar 16 7:35 AM
hi..while i runing get method it works fine and i have requested use as request the below gets displayed
when i run post method i am getting below error has CSRF token validation failed..how can i fix it.
Can any one help me ,..how to fix it
2021 Mar 16 7:56 AM
The images failed to upload.
Are you setting the cookies too, with the token?
2021 Mar 16 8:06 AM
No Mateusz ...i am not setting any cookies..
2021 Mar 16 8:09 AM
You need to return the same cookies which you get when you request the token. Token is valid for a session only, and cookies define the session.
2021 Mar 16 8:13 AM
i set same cookies ...i didnt changed cookies...and token got generated which runing post method only..not for get methods.