Search code examples
djangopython-3.xdjango-rest-frameworkcsrfdjango-csrf

How i can solve the CSRF Fobidden(403) django rest framework?


i'm working my project with django restframework, all is right except when i try to update a table, always appears the CSRF.

How i can set CSRF cookie? Thanks

Screenshot


Solution

  • I experienced this earlier today while switching development projects and added to an existing thread here: Django CSRF Cookie Not Set

    After checking the order of installed apps and middleware against the startproject template, clearing my browser cache resolved the issue.