-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails_admin throw ActionController::InvalidAuthenticityToken in rails-api #2919
Comments
buncis
added a commit
to buncis10/lazy-api
that referenced
this issue
Aug 28, 2017
railsadminteam/rails_admin#2919 dirubah di application.rb dari api_only true jadi false
I think its related with this #2830
|
Thanks @buncismamen it worked for me!! |
Thank you, this fixed it. But I don't get why this worked, can you explain? @buncismamen |
@visheshruparelia because rails-api remove some middleware stacks that rails admin needs. |
robbywashere-zz
pushed a commit
to robbywashere-zz/rails_admin
that referenced
this issue
Mar 25, 2018
robbywashere-zz
pushed a commit
to robbywashere-zz/rails_admin
that referenced
this issue
Mar 25, 2018
Add missing cookie middleware when rails is used in api mode
Fixed by #3006. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rails_admin throw ActionController::InvalidAuthenticityToken when I want to create model
rails version 5.1.2 with --api mode
rails_admin version 1.2.0
change
config.api_only
fromtrue
tofalse
inapplication.rb
fix the problem idk why, anyone care to explain?The text was updated successfully, but these errors were encountered: