Disabled protect_from_forgery

Because of the following error:
```
ActionController::InvalidCrossOriginRequest: Security warning: an
embedded <script> tag on another site requested protected JavaScript. If
you know what you're doing, go ahead and disable forgery protection on
this action to permit cross-origin JavaScript embedding.
```
This commit is contained in:
Ryunosuke SATO 2014-09-08 19:09:07 +09:00
parent bb8bedad63
commit f77362e9d6

View File

@ -84,8 +84,6 @@ class RenderJsonTest < ActionController::TestCase
end
class TestController < ActionController::Base
protect_from_forgery
serialization_scope :current_user
attr_reader :current_user