mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-27 21:26:43 +00:00
Document environment variables used to configure CORS and allowed_hosts (#444)
* add env vars to configure CORS and allowed_hosts Adds documentation for the environment variables introduced in https://github.com/inventree/InvenTree/pull/4355 * add whitespaces removed by autoformatter whitespaces are required to enforce markdown linebreaks Co-authored-by: Matthias Mair <code@mjmair.com> --------- Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
parent
90d842d6f9
commit
f06c7961b0
@ -164,9 +164,9 @@ By default, all hosts are allowed, and CORS requests are enabled from any origin
|
||||
|
||||
| Environment Variable | Configuration File | Description | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| *N/A* | allowed_hosts | List of allowed hosts | `*` |
|
||||
| *N/A* | cors.allow_all | Allow all remote URLS for CORS checks | False |
|
||||
| *N/A* | cors.whitelist | List of whitelisted CORS URLs | *Empty list* |
|
||||
| INVENTREE_ALLOWED_HOSTS | allowed_hosts | List of allowed hosts | `*` |
|
||||
| INVENTREE_CORS_ORIGIN_ALLOW_ALL | cors.allow_all | Allow all remote URLS for CORS checks | False |
|
||||
| INVENTREE_CORS_ORIGIN_WHITELIST | cors.whitelist | List of whitelisted CORS URLs | *Empty list* |
|
||||
|
||||
!!! info "Configuration File"
|
||||
Allowed hosts and CORS options must be changed in the configuration file, and cannot be set via environment variables
|
||||
|
Loading…
x
Reference in New Issue
Block a user