Answers for "when i use jwt token I got error CSRF verification failed. Request aborted."

3

CSRF verification failed. Request aborted.

<form id='formulario2' method='post' action='>
      <h3>Enter:</h3>
      {% csrf_token %}


     <input id="id_mesaje" name="mesaje" type="email" placeholder="E-mail"/>
    <input type='submit' name="boton2" value='Suscribete' style="display:inline-block;background-color: #80e174; "/>
 </form>
Posted by: Guest on November-13-2020
0

CSRF verification failed. Request aborted.

Django CSRF Token
CSRF verification failed. Request aborted.
---------------------------------------------------
from django.views.decorators.csrf import csrf_exempt # import
@csrf_exempt  # add this token before defining function
	def def_name():
    	...
Posted by: Guest on July-26-2021

Code answers related to "when i use jwt token I got error CSRF verification failed. Request aborted."

Python Answers by Framework

Browse Popular Code Answers by Language