Skip to content
Snippets Groups Projects
Unverified Commit 989f1167 authored by Will Hunt's avatar Will Hunt Committed by GitHub
Browse files

Merge pull request #4279 from matrix-org/hs/fix-config-cors

Make /config more CORS-y
parents 9b1c19e0 fee831c0
No related branches found
No related tags found
No related merge requests found
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment