From 7414781b3aa7a8801f3ef73e40bab22bca152834 Mon Sep 17 00:00:00 2001 From: Arksine Date: Fri, 13 Nov 2020 08:57:10 -0500 Subject: [PATCH] docs: update config documentation The `enable_cors` option has been removed from the [server] config. CORS is now configured in [authorization] via the `cors_domains` option. Signed-off-by: Eric Callahan --- docs/installation.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index e9eb481..7289b67 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -162,9 +162,6 @@ klippy_uds_address: /tmp/klippy_uds # is /tmp/klippy_uds max_upload_size: 200 # The maximum size allowed for a file upload. Default is 200 MiB. -enable_cors: False -# Enables CORS for all http requests. This option is useful for web -# application development. Default is False. enable_debug_logging: True # When set to True Moonraker will log in verbose mode. During this stage # of development the default is True. In the future this will change. @@ -193,6 +190,11 @@ trusted_clients: # 192.168.1.254. Note that when specifying IPv4 ranges the last segment # of the ip address must be 0. The default is no clients or ranges are # trusted. +cors_domains: + http://klipper-printer.local + http://second-printer.local:7125 +# Enables CORS for the specified domains. One may specify * if they wish +# to allow all domains. ``` For the moment, you need to restart the moonraker service to load a new