mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-21 04:14:03 +01:00
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...
This commit is contained in:
parent
bf4fd14806
commit
6f47bc3fb2
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ class WellKnownResource(Resource):
|
||||||
self._well_known_builder = WellKnownBuilder(hs)
|
self._well_known_builder = WellKnownBuilder(hs)
|
||||||
|
|
||||||
def render_GET(self, request):
|
def render_GET(self, request):
|
||||||
|
set_cors_headers(request)
|
||||||
r = self._well_known_builder.get_well_known()
|
r = self._well_known_builder.get_well_known()
|
||||||
if not r:
|
if not r:
|
||||||
request.setResponseCode(404)
|
request.setResponseCode(404)
|
||||||
|
|
Loading…
Reference in a new issue