From d1fad046c9678f49297fc1fb4fe27bb9f6f4cbbb Mon Sep 17 00:00:00 2001 From: sandeep-vedam Date: Mon, 17 Apr 2023 18:40:17 +0530 Subject: [PATCH] Updated cors documentation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0ffbbc1f..7794830e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ This will install `http-server` globally so that it may be run from the command |`-b` or `--brotli`|When enabled it will serve `./public/some-file.js.br` in place of `./public/some-file.js` when a brotli compressed version of the file exists and the request accepts `br` encoding. If gzip is also enabled, it will try to serve brotli first. |`false`| |`-e` or `--ext` |Default file extension if none supplied |`html` | |`-s` or `--silent` |Suppress log messages from output | | -|`--cors` |Enable CORS via the `Access-Control-Allow-Origin` header | | +|`--cors` |Enable CORS via the `Access-Control-Allow-Origin` header and also the value set is assigned to the `Access-Control-Allow-Headers` | | |`-o [path]` |Open browser window after starting the server. Optionally provide a URL path to open. e.g.: -o /other/dir/ | | |`-c` |Set cache time (in seconds) for cache-control max-age header, e.g. `-c10` for 10 seconds. To disable caching, use `-c-1`.|`3600` | |`-U` or `--utc` |Use UTC time format in log messages.| |