See T4340. See T13099. See https://discourse.phabricator-community.org/t/meme-remarkup-tag-no-longer-working-after-upgrading-to-2018-w09/1210/3.
Both {img ...} and {meme ...} source images from the main Phabricator server ('self') even if a CDN domain is configured. This violates our strict Content-Security-Policy which permits images only from the CDN domain.
These tasks are related, although probably not everything (and perhaps almost nothing) is going to make it into scope:
- T4190, improvements to {img ...}.
- T12542 but I don't know how to actually pursue that.
- T5258, transform code is sorta garbage.
- T9818 / T3689 / T5741 / T3562.
A simple fix is to add 'self' to img-src, but I'd prefer not to loosen the CSP if we can help it, and neither of these rules should require sourcing from the primary domain.