Skip to content

Commit 805fd4f

Browse files
committed
Add USE_X_FORWARDED_HOST
1 parent ecf2a21 commit 805fd4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rnacentral/rnacentral/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@
357357
],
358358
}
359359

360+
# Recognize the real IP from X-Forwarded-For
361+
USE_X_FORWARDED_HOST = True
360362

361363
# Use a simplified runner to prevent any modifications to the database.
362364
TEST_RUNNER = "portal.tests.test_runner.FixedRunner"

0 commit comments

Comments
 (0)