From 68876243657f6ae55fccd52bb72c91365834b5d9 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Mon, 8 Feb 2021 22:58:44 +0100 Subject: [PATCH] docs: remove whitespace description for cors option --- README.md | 2 +- src/config.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbe304d..d8e2a73 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Server can be configured either via environment variables or their equivalent co | `SERVER_TLS_PKCS12_PASSWD` | A specified password to decrypt the private key. | Default empty | | `SERVER_TLS_REDIRECT_FROM` | Host port for redirecting HTTP requests to HTTPS. This option enables the HTTP redirect feature | Default empty (disabled) | | `SERVER_TLS_REDIRECT_HOST` | Host name of HTTPS site for redirecting HTTP requests to. | Default host address | -| `SERVER_CORS_ALLOW_ORIGINS` | Specify a CORS list of allowed origin hosts separated by comas with no whitespaces. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. See [Iron CORS crate](https://docs.rs/iron-cors/0.8.0/iron_cors/#mode-1-whitelist). | Default empty (which means CORS is disabled) | +| `SERVER_CORS_ALLOW_ORIGINS` | Specify a CORS list of allowed origin hosts separated by comas. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. See [Iron CORS crate](https://docs.rs/iron-cors/0.8.0/iron_cors/#mode-1-whitelist). | Default empty (which means CORS is disabled) | ### Command-line arguments diff --git a/src/config.rs b/src/config.rs index 306cb30..7c69457 100644 --- a/src/config.rs +++ b/src/config.rs @@ -79,6 +79,6 @@ pub struct Options { default_value = "", env = "SERVER_CORS_ALLOW_ORIGINS" )] - /// Specify a CORS list of allowed origin hosts separated by comas with no whitespaces. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. + /// Specify a CORS list of allowed origin hosts separated by comas. Host ports or protocols aren't being checked. Use an asterisk (*) to allow any host. pub cors_allow_origins: String, } -- libgit2 1.7.2