Skip to content

Commit ef8dc59

Browse files
authored
Merge pull request #515 from supertokens/test/fix_test_server
test: fix tests by adding localhost as an allowed host to test servers
2 parents a2e7064 + f846e5e commit ef8dc59

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/frontendIntegration/django2x/mysite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# SECURITY WARNING: don't run with debug turned on in production!
2929
DEBUG = True
3030

31-
ALLOWED_HOSTS = ["localhost.org", "0.0.0.0"]
31+
ALLOWED_HOSTS = ["localhost.org", "localhost", "0.0.0.0"]
3232

3333
CORS_ORIGIN_WHITELIST = [
3434
"http://localhost.org:8080",

tests/frontendIntegration/django3x/mysite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = True
2929

30-
ALLOWED_HOSTS = ["localhost.org", "0.0.0.0"]
30+
ALLOWED_HOSTS = ["localhost.org", "localhost", "0.0.0.0"]
3131

3232
CORS_ORIGIN_WHITELIST = [
3333
"http://localhost.org:8080",

tests/frontendIntegration/drf_async/mysite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = True
2929

30-
ALLOWED_HOSTS = ["localhost.org", "0.0.0.0"]
30+
ALLOWED_HOSTS = ["localhost.org", "localhost", "0.0.0.0"]
3131

3232
CORS_ORIGIN_WHITELIST = [
3333
"http://localhost.org:8080",

tests/frontendIntegration/drf_sync/mysite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = True
2929

30-
ALLOWED_HOSTS = ["localhost.org", "0.0.0.0"]
30+
ALLOWED_HOSTS = ["localhost.org", "localhost", "0.0.0.0"]
3131

3232
CORS_ORIGIN_WHITELIST = [
3333
"http://localhost.org:8080",

0 commit comments

Comments
 (0)