From 29603682e55c94350a2ddfb5d4e86c15fa36daa1 Mon Sep 17 00:00:00 2001 From: Max Dor Date: Tue, 4 Jun 2019 17:06:25 +0200 Subject: [PATCH] Clarify how to serve static assets for 3PID session views --- docs/threepids/session/session-views.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/threepids/session/session-views.md b/docs/threepids/session/session-views.md index db263b7a..f8cd503d 100644 --- a/docs/threepids/session/session-views.md +++ b/docs/threepids/session/session-views.md @@ -26,6 +26,14 @@ Two configuration keys are available that accept paths to HTML templates: - `success` - `failure` +### Serving static assets +mxisd will not serve any static asset (images, JS, CSS, etc.). If such are needed, you will need to serve them using the +reverse proxy sitting in front of mxisd using a path outside of the `/_matrix/identity/` namespace. We advise using +the base path `/static/` for such use cases, allowing to remain under the same hostname/origin. + +You can also serve such assets using absolute URL, possibly under other domains, but be aware of Cross-Origin restrictions +in browsers which are out of scope of mxisd. + ## Placeholders ### Success No object/placeholder are currently available.