From 4b1e80dea73e36ac52bd58a53dd1b09cebc63e88 Mon Sep 17 00:00:00 2001 From: pollfly <75068813+pollfly@users.noreply.github.com> Date: Tue, 12 Jul 2022 12:33:45 +0300 Subject: [PATCH] Add ClearML Server CORS configuration info (#290) --- docs/deploying_clearml/clearml_server_config.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/deploying_clearml/clearml_server_config.md b/docs/deploying_clearml/clearml_server_config.md index ba43b76a..48df9ed0 100644 --- a/docs/deploying_clearml/clearml_server_config.md +++ b/docs/deploying_clearml/clearml_server_config.md @@ -326,6 +326,23 @@ Modify the following settings for the watchdog: 1. Restart ClearML Server. +### CORS Configuration + +To enable CORS on your ClearML File Server, edit the ClearML Server's `/opt/clearml/config/apiserver.conf` file's `cors` +section. For example: + +``` +cors { + origins: "*" + + # Not supported when origins is "*" + supports_credentials: true +} +``` + +See the [Flask-Cors documentation](https://flask-cors.corydolphin.com/en/latest/api.html) for detailed initialization +options. + ### Custom UI Context Menu Actions :::note Enterprise Feature