@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix YouTube remarkup rule being blocked by Content-Security-Policy header

Summary: Ref T13116. See PHI526. Currently, the YouTube remarkup rule writes an `<iframe ...>` but does not adjust the Content-Security-Policy appropriately.

Test Plan: Pasted a YouTube link; viewed it in Safari, Chrome and Firefox.

Maniphest Tasks: T13116

Differential Revision: https://secure.phabricator.com/D19277

+5
+5
src/infrastructure/markup/rule/PhabricatorYoutubeRemarkupRule.php
··· 52 52 return $this->getEngine()->storeText($iframe); 53 53 } 54 54 55 + public function didMarkupText() { 56 + CelerityAPI::getStaticResourceResponse() 57 + ->addContentSecurityPolicyURI('frame-src', 'https://www.youtube.com/'); 58 + } 59 + 55 60 }