A

Admin • 833.24K Points
Coach

Q. What does csrf_exempt decorator do?

  • (A) Enables CSRF protection
  • (B) Disables CSRF protection for a specific view
  • (C) Redirects on CSRF failure
  • (D) Validates CSRF token
  • Correct Answer - Option(B)
  • Views: 20
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

csrf_exempt disables CSRF protection for the decorated view.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.