Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4279 from matrix-org/hs/fix-config-cors
Browse files Browse the repository at this point in the history
Make /config more CORS-y
  • Loading branch information
Half-Shot authored Dec 10, 2018
2 parents 9b1c19e + fee831c commit 989f116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/4279.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Send CORS headers for /media/config
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/config_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def render_GET(self, request):
@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)
Expand Down

0 comments on commit 989f116

Please sign in to comment.