Skip to content

Commit

Permalink
chore(cors): update CORS config
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Apr 19, 2024
1 parent 9468d7b commit 77ea586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SECRET_TOKEN=my-secret-token
FRONTEND_URL=http://localhost:3000
FRONTEND_DEV_URL=https://dev.slicktelemetry.com
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Ergast configuration
ergast = Ergast(result_type="raw", auto_cast=True)
# Cors Middleware
origins = [config["FRONTEND_URL"], "http://127.0.0.1:3000"]
origins = ["http://localhost:3000", "http://127.0.0.1:3000", config["FRONTEND_DEV_URL"]]
# Others
favicon_path = "favicon.ico"
# Security
Expand Down

0 comments on commit 77ea586

Please sign in to comment.