diff --git a/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php b/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php index 25422b970d..cbf322b2d9 100644 --- a/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php +++ b/src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php @@ -52,4 +52,9 @@ final class PhabricatorYoutubeRemarkupRule extends PhutilRemarkupRule { return $this->getEngine()->storeText($iframe); } + public function didMarkupText() { + CelerityAPI::getStaticResourceResponse() + ->addContentSecurityPolicyURI('frame-src', 'https://www.youtube.com/'); + } + }