mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 03:23:54 +01:00
Merge pull request #4279 from matrix-org/hs/fix-config-cors
Make /config more CORS-y
This commit is contained in:
commit
989f1167af
2 changed files with 2 additions and 1 deletions
1
changelog.d/4279.bugfix
Normal file
1
changelog.d/4279.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Send CORS headers for /media/config
|
|
@ -41,7 +41,7 @@ class MediaConfigResource(Resource):
|
|||
@defer.inlineCallbacks
|
||||
def _async_render_GET(self, request):
|
||||
yield self.auth.get_user_by_req(request)
|
||||
respond_with_json(request, 200, self.limits_dict)
|
||||
respond_with_json(request, 200, self.limits_dict, send_cors=True)
|
||||
|
||||
def render_OPTIONS(self, request):
|
||||
respond_with_json(request, 200, {}, send_cors=True)
|
||||
|
|
Loading…
Reference in a new issue