1

Description

I want to generate a PDF file from Django view, so I'm using django-wkhtmltopdf app, the app is working but my template (that is used in the view) has many AJAX requests using jQuery. Views that requested by AJAX requests are protected by csrf token.

Issue

All AJAX requests are getting 403 Forbidden response because of CSRF verification failed.

Trial

I tried django-cors-headers and still getting the same responses.

Astik Anand
  • 12,757
  • 9
  • 41
  • 51
Emad Mokhtar
  • 3,237
  • 5
  • 31
  • 49

0 Answers0