mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
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:
parent
bb8bedad63
commit
f77362e9d6
@ -84,8 +84,6 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
class TestController < ActionController::Base
|
class TestController < ActionController::Base
|
||||||
protect_from_forgery
|
|
||||||
|
|
||||||
serialization_scope :current_user
|
serialization_scope :current_user
|
||||||
attr_reader :current_user
|
attr_reader :current_user
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user