1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00
phorge-phorge/src
epriestley 98cac2cc29 Always serve "{meme ...}" from the CDN domain, never from the primary domain
Summary:
Ref T13101. This is a minimal change to make "{meme ...}" work with the new Content-Security-Policy by using an Ajax request to generate the image and then swapping the source on the client.

This could be much cleaner (see T5258, etc).

Test Plan: Used `{meme, src=cat6, above=i am, below=cat}`, chuckled completely unironically.

Maniphest Tasks: T13101

Differential Revision: https://secure.phabricator.com/D19196
2018-03-08 07:47:02 -08:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Don't emit Content-Security-Policy when returning a response during preflight setup checks 2018-03-05 06:54:01 -08:00
applications Always serve "{meme ...}" from the CDN domain, never from the primary domain 2018-03-08 07:47:02 -08:00
docs Add "All" and "With Non-Owner Author" options for all Owners Package autoreview rules 2018-03-06 19:01:58 -08:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Always serve "{meme ...}" from the CDN domain, never from the primary domain 2018-03-08 07:47:02 -08:00
view Make Paste source code line highlighting behavior more generic 2018-03-01 12:46:36 -08:00
__phutil_library_init__.php
__phutil_library_map__.php When proxying an "{image ...}" image fails, show the user an error message 2018-03-08 07:03:26 -08:00