mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-30 05:56:10 -05:00
Merge pull request #4279 from matrix-org/hs/fix-config-cors
Make /config more CORS-y
This commit is contained in:
commit
989f1167af
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 New Issue
Block a user