A
A
Alexander Petrov2015-11-19 15:05:15
Ruby on Rails
Alexander Petrov, 2015-11-19 15:05:15

How to disable token authentication?

My Yandex checkout makes a request to the site with a post. But ruby ​​throws an error:
W, [2015-11-19T14:56:37.246325 #9288] WARN -- : Can't verify CSRF token authenticity
How can I disable verification?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sidorov, 2015-11-19
@Mirkom63

In controller:
skip_before_action :verify_authenticity_token

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question