mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-28 09:24:41 +00:00
Merge pull request #4279 from matrix-org/hs/fix-config-cors
Make /config more CORS-y
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user