Skip to content

Commit b9883a5

Browse files
authored
localhost fix ip (coderamp-labs#42)
1 parent ea28fc0 commit b9883a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
app.add_middleware(Analytics, api_key=os.getenv('API_ANALYTICS_KEY'))
2525

2626
# Define the default allowed hosts
27-
default_allowed_hosts = ["gitingest.com", "*.gitingest.com", "localhost"]
27+
default_allowed_hosts = ["gitingest.com", "*.gitingest.com", "localhost", "127.0.0.1"]
2828

2929
# Fetch allowed hosts from the environment variable or use the default
3030
allowed_hosts = os.getenv("ALLOWED_HOSTS")

0 commit comments

Comments
 (0)