Check this website, it may be helpful https://www.techiediaries.com/django-react-forms-csrf-axios/
On Wednesday, July 29, 2020 at 9:55:33 PM UTC+1, Christian Seberino wrote:
-- On Wednesday, July 29, 2020 at 9:55:33 PM UTC+1, Christian Seberino wrote:
I have a Django app with multiple forms on various pages. They all work except for one with just an optional checkbox.......I checked and they all have templates with {% csrf_token %}.The only thing special but the problematic form is that I have a checkbox input that is optional.That means I'm pressing the submit button when NOTHING has been selected.Can that cause this CSRF error?Thanks!Chris
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5a563def-6019-46e8-8d9b-d234432bba2eo%40googlegroups.com.
No comments:
Post a Comment