diff options
author | Matthew Hodgson <matthew@matrix.org> | 2019-02-14 19:51:33 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2019-02-14 19:51:41 +0000 |
commit | 6f47bc3fb2b5617b4355c9c81649d7feb09b790a (patch) | |
tree | 5cbbd85b09af993b443aecab285af6a87450f954 | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-6f47bc3fb2b5617b4355c9c81649d7feb09b790a.tar.xz |
set CORS on .well-known URI to unbreak modular
otherwise a riot/web running on foo.riot.im can't query the .well-known on foo.modular.im...
-rw-r--r-- | synapse/rest/well_known.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/well_known.py b/synapse/rest/well_known.py index 6e043d6162..41d868c6d2 100644 --- a/synapse/rest/well_known.py +++ b/synapse/rest/well_known.py @@ -59,6 +59,7 @@ class WellKnownResource(Resource): self._well_known_builder = WellKnownBuilder(hs) def render_GET(self, request): + set_cors_headers(request) r = self._well_known_builder.get_well_known() if not r: request.setResponseCode(404) |