Phabricator working in an iframe?



I use a custom Java application that aggregates more tools, including Phabricator and cannot find a way to disable CSP and allow integration in iframe.
Already looked into
and while it opens it takes the whole browser tab, escaping the iframe.
To be mentioned: both aggregation front application and phabricator are self-hosted (public subdomain for each).

An example: - main app with 3rd party tools in iframes - grafana in iframe (works) - does not work even with “frame-ancestors *.example”

Is there any workaround to allow this type of setup?

Thank you in advance.



Is there any workaround to allow this type of setup?

No. By design, Phabricator does not work in an iframe.

You can hack around this, but you will need to remove multiple layers of protection (CSP, X-Frame-Options, explicit window.parent hoisting), and will render yourself vulnerable to clickjacking attacks in doing so. If you choose to pursue this, you’re on your own.

(You may be able to use the API to safely integrate Phabricator with other tools.)


closed #3