<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Csrf on Gaëtan Grond - Personal Website</title>
    <link>https://gaetangrond.me/tags/csrf/</link>
    <description>Recent content in Csrf on Gaëtan Grond - Personal Website</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 03 Aug 2023 13:02:50 +0200</lastBuildDate>
    <atom:link href="https://gaetangrond.me/tags/csrf/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Customize The CSRF Failure View in Django</title>
      <link>https://gaetangrond.me/posts/django/how-to-customize-csrf-failure-view-django/</link>
      <pubDate>Tue, 01 Aug 2023 13:02:50 +0200</pubDate>
      <guid>https://gaetangrond.me/posts/django/how-to-customize-csrf-failure-view-django/</guid>
      <description>&lt;p&gt;When working with Django and third party libraries, you may encounter a CSRF error on login or any other form submission. This is because Django requires a CSRF token to be sent with every form submission except GET requests or if the form has the &lt;code&gt;csrf_exempt&lt;/code&gt; decorator.&lt;/p&gt;
&lt;p&gt;During my work with Django, I have encountered this error many times, sometimes due to my own mistakes and sometimes due to third party libraries or user behavior.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
