Skip to content

Commit 45d2074

Browse files
committed
Mention that the port needs to be added to the CSRF trusted origins list
1 parent 99ff8b8 commit 45d2074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ will kick in.
191191
To solve this, update the env file and either
192192

193193
* manually set a list of your domain names and/or server IPs
194-
`CSRF_TRUSTED_ORIGINS=https://my.domain.example.com,https://118.999.881.119`
194+
`CSRF_TRUSTED_ORIGINS=https://my.domain.example.com,https://118.999.881.119:8008`
195195
If you are unsure what origin to add here, set the debug setting to true, restart
196196
and try again, the error message that appears will have the origin prominently
197-
displayed.
197+
displayed. Note: the port is important!
198198
* or set the `X-Forwarded-Proto` header like in the example and set
199199
`X_FORWARDED_PROTO_HEADER_SET=True`. If you do this consult the
200200
[documentation](https://docs.djangoproject.com/en/4.1/ref/settings/#secure-proxy-ssl-header)

0 commit comments

Comments
 (0)