0
0
Fork 0

Fix functional user requirements in whitelist mode (#14093)

Fixes #14092
This commit is contained in:
ThibG 2020-06-19 19:18:47 +02:00 committed by GitHub
parent b1d492f30a
commit ac8a788370
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -19,7 +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]
skip_before_action :require_functional!, only: [:show, :embed], unless: :whitelist_mode?
content_security_policy only: :embed do |p|
p.frame_ancestors(false)