Nikhil1912 / Athenaeum

MIT License
0 stars 1 forks source link

BUG: CSRF Token issues #22

Open abidnazirisami opened 2 years ago

abidnazirisami commented 2 years ago

Sometimes, accessing from localhost:3000 is not allowing put, delete, or post requests from react. Some probable solutions:

  1. https://stackoverflow.com/questions/61716825/django-session-authentication-and-axios-post-signals/61735857#61735857
  2. https://stackoverflow.com/questions/63957905/axios-put-request-403-forbidden-when-logged-into-django
  3. https://docs.djangoproject.com/en/4.1/howto/csrf/
  4. https://www.stackhawk.com/blog/react-csrf-protection-guide-examples-and-how-to-enable-it/

Some of these have been tried out but did not resolve it. Further investigation is required.