0
0
Fork 0

Fix redirecting non-functional accounts on public pages (#11978)

Fix #11969
This commit is contained in:
Eugen Rochko 2019-09-28 01:33:27 +02:00 committed by GitHub
parent 3ec80c7aec
commit de5305a3a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 16 additions and 0 deletions

View file

@ -19,6 +19,7 @@ class StatusesController < ApplicationController
before_action :set_autoplay, only: :embed
skip_around_action :set_locale, if: -> { request.format == :json }
skip_before_action :require_functional!, only: [:show, :embed]
content_security_policy only: :embed do |p|
p.frame_ancestors(false)