Wednesday, July 29, 2020

Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

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/0541907a-e014-4ee2-bb2e-168c9cbad942o%40googlegroups.com.

No comments:

Post a Comment