mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Documentation for allowed hosts / CORS headers
This commit is contained in:
parent
820d8da2ef
commit
e231de6951
@ -32,4 +32,14 @@ By default, InvenTree uses an sqlite database file : ``inventree_db.sqlite3``. T
|
||||
|
||||
**MYSQL:** MySQL database backend is supported with the native Django implemetation.
|
||||
|
||||
**POSTGRESQL:** PostgreSQL database backend is supported with the native Django implementation. Note that to use this backend, the ``psycopg2`` Python library must first be installed.
|
||||
**POSTGRESQL:** PostgreSQL database backend is supported with the native Django implementation. Note that to use this backend, the ``psycopg2`` Python library must first be installed.
|
||||
|
||||
Allowed Hosts / CORS
|
||||
--------------------
|
||||
|
||||
By default, all hosts are allowed, and CORS requests are enabled from any origin. **This is not secure and should be adjusted for your installation**. These options can be changed in the configuration file.
|
||||
|
||||
For further information, refer to the following documentation:
|
||||
|
||||
* `Django ALLOWED_HOSTS <https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts>`_
|
||||
* `Django CORS headers <https://github.com/OttoYiu/django-cors-headers>`_
|
||||
|
Loading…
Reference in New Issue
Block a user