Skip to content

Commit b9829dc

Browse files
committed
Add CSRF_TRUSTED_ORIGINS config and reference to installation docs #489
Signed-off-by: Thomas Druez <[email protected]>
1 parent 7347b41 commit b9829dc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/installation.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ An overview of the web application usage is available at :ref:`user_interface`.
7575

7676
.. warning::
7777
To access a dockerized ScanCode.io app from a remote location, the ``ALLOWED_HOSTS``
78-
setting needs to be provided in your ``.env`` file::
78+
and ``CSRF_TRUSTED_ORIGINS`` settings need to be provided in your ``.env`` file,
79+
for example::
7980

80-
ALLOWED_HOSTS=.domain.com,127.0.0.1
81+
ALLOWED_HOSTS=.your-domain.com,127.0.0.1
82+
CSRF_TRUSTED_ORIGINS=https://*.your-domain.com,http://127.0.0.1:8001
8183

82-
Refer to `Django ALLOWED_HOSTS settings <https://docs.djangoproject.com/
83-
en/dev/ref/settings/#allowed-hosts>`_ for more details.
84+
Refer to `ALLOWED_HOSTS settings <https://docs.djangoproject.com/
85+
en/dev/ref/settings/#allowed-hosts>`_ and `CSRF_TRUSTED_ORIGINS settings
86+
<https://docs.djangoproject.com/en/dev/ref/settings/
87+
#std-setting-CSRF_TRUSTED_ORIGINS>`_ for more details.
8488

8589
Execute a Command
8690
^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)