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