Skip to content

Commit

Permalink
localhost fix ip (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarzaa authored Dec 24, 2024
1 parent 030c004 commit 6f2f881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
app.add_middleware(Analytics, api_key=os.getenv('API_ANALYTICS_KEY'))

# Define the default allowed hosts
default_allowed_hosts = ["gitingest.com", "*.gitingest.com", "localhost"]
default_allowed_hosts = ["gitingest.com", "*.gitingest.com", "localhost", "127.0.0.1"]

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

0 comments on commit 6f2f881

Please sign in to comment.