DEV Community

Discussion on: CSRF verification failed. Request aborted. in django rest framework

Collapse
 
sameerahmed123 profile image
sameer-ahmed123 • Edited

hi , csrf verification is Djangos built in security measure , it mostly occurs when there is missing CSRFtoken inside a form .
I suggest you take a look at the templates in your app and add any CSRFtoken that is missing , it will most likely solve your problem

a dango form should look like :

CSRF token