protect-from-forgery Questions

4

Solved

I have a react component in my rails app where I'm trying to use fetch() to send a POST to my rails app hosted on localhost, this gives me the error: ActionController::InvalidAuthenticityToken (Ac...
Kenogenesis asked 21/2, 2019 at 13:18

3

I have web site built with Rails3 and now I want to implement json API for mobile client access. However, sending json post request from the client because of the protect_from_forgery filter. Becau...
Riplex asked 19/4, 2011 at 13:38

8

Solved

If the protect_from_forgery option is mentioned in application_controller, then I can log in and perform any GET requests, but on very first POST request Rails resets the session, which logs me out...
Benzene asked 6/2, 2013 at 16:41

1

Solved

I have read multiple questions and answers here on StackOverflow about InvalidAuthenticityToken and protect_from_forgery but get none the wiser. I have a website that get hundreds of these errors...
Face asked 20/8, 2016 at 14:56

2

Solved

I am using Rails 3.0.2 which has protect_from_forgery by default in application_controller.rb. I wanted to trigger an InvalidAuthenticityToken. To do this I have added this javascript to my page:...
Mercola asked 22/5, 2011 at 19:1

1

I understand that Rails by default doesn't have CSRF protection for HTTP GET requests, because, it claims they are idempotent. However, there is sensitive information that is returned to the user f...

1

Solved

I have two applications that need to talk to each other over HTTP. One is a PHP app and the other is my main app, the Rails app. I am needing the PHP app to talk to the Rails app by POSTing data to...
Ticino asked 10/9, 2010 at 14:17

2

Solved

please help a newbie in Rails :) I have protect_from_forgery call (which is given by default) with no attributes in my ApplicationController class. Basically here's the code: class ApplicationCo...

1

Solved

I'm asking this because I feel that it's making my life overly complicated when I start communicating with rails using ajax or flash. I know it's nice to protect against CSRF, but couldn't I just ...
Isologous asked 25/11, 2009 at 14:40
1

© 2022 - 2024 — McMap. All rights reserved.