A

Admin • 802.91K Points
Coach

Q. What is the purpose of `csrf_token` in Django templates?

  • (A) To disable JavaScript
  • (B) To prevent SQL injection
  • (C) To protect against CSRF attacks
  • (D) To block bots
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`csrf_token` protects POST forms from Cross-Site Request Forgery (CSRF) attacks.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.