Fix ActivityPub and REST API queries setting cookies and preventing caching (#11539)

Regression from #8657
This commit is contained in:
ThibG 2019-08-11 22:59:40 +02:00 committed by Eugen Rochko
parent aebefc7ce9
commit 646f96d448
3 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,8 @@ class StatusesController < ApplicationController
before_action :set_body_classes
before_action :set_autoplay, only: :embed
skip_around_action :set_locale, if: -> { request.format == :json }
content_security_policy only: :embed do |p|
p.frame_ancestors(false)
end