File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -75,12 +75,16 @@ An overview of the web application usage is available at :ref:`user_interface`.
75
75
76
76
.. warning ::
77
77
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::
79
80
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
81
83
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.
84
88
85
89
Execute a Command
86
90
^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments