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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Disables CSRF protection for a specific view
Explanation: csrf_exempt disables CSRF protection for the decorated view.
Explanation by: Mr. Dubey
csrf_exempt disables CSRF protection for the decorated view.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate