We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0014e72 commit 2ff149aCopy full SHA for 2ff149a
inertia/tests/test_rendering.py
@@ -103,4 +103,8 @@ class CSRFTestCase(InertiaTestCase):
103
def test_that_csrf_inclusion_is_automatic(self):
104
response = self.inertia.get('/props/')
105
106
+ self.assertIsNotNone(response.cookies.get('csrftoken'))
107
+ def test_that_csrf_is_included_even_on_initial_page_load(self):
108
+ response = self.client.get('/props/')
109
+
110
self.assertIsNotNone(response.cookies.get('csrftoken'))
0 commit comments