summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/4279.bugfix1
-rw-r--r--synapse/rest/media/v1/config_resource.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/changelog.d/4279.bugfix b/changelog.d/4279.bugfix
new file mode 100644
index 0000000000..12de4f44c4
--- /dev/null
+++ b/changelog.d/4279.bugfix
@@ -0,0 +1 @@
+Send CORS headers for /media/config
diff --git a/synapse/rest/media/v1/config_resource.py b/synapse/rest/media/v1/config_resource.py
index 8c3adf6c64..9b97da2132 100644
--- a/synapse/rest/media/v1/config_resource.py
+++ b/synapse/rest/media/v1/config_resource.py
@@ -18,7 +18,11 @@ from twisted.internet import defer
 from twisted.web.resource import Resource
 from twisted.web.server import NOT_DONE_YET
 
-from synapse.http.server import respond_with_json, wrap_json_request_handler, set_cors_headers
+from synapse.http.server import (
+    respond_with_json,
+    set_cors_headers,
+    wrap_json_request_handler,
+)
 
 
 class MediaConfigResource(Resource):