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 6aa0edf commit 2e8fc70Copy full SHA for 2e8fc70
.gitignore
@@ -20,3 +20,6 @@
20
21
# Appraisal
22
gemfiles/*.gemfile.lock
23
+
24
+# Local files, such as .env.development.local
25
+*.local
lib/inertia_rails/controller.rb
@@ -13,7 +13,7 @@ module Controller
13
helper ::InertiaRails::Helper
14
15
after_action do
16
- cookies['XSRF-TOKEN'] = form_authenticity_token unless !protect_against_forgery?
+ cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
17
end
18
19
0 commit comments