Skip to content

Commit

Permalink
chore: add staging and prod URLs to origins
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed May 8, 2024
1 parent fe8f1f9 commit 803b4b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
SECRET_TOKEN=my-secret-token
FRONTEND_DEV_URL=https://dev.slicktelemetry.com
FRONTEND_STAGING_URL=https://staging.slicktelemetry.com
FRONTEND_PROD_URL=https://slicktelemetry.com
8 changes: 7 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
# Ergast configuration
ergast = Ergast(result_type="raw", auto_cast=True)
# Cors Middleware
origins = ["http://localhost:3000", "http://127.0.0.1:3000", config["FRONTEND_DEV_URL"]]
origins = [
"http://localhost:3000",
"http://127.0.0.1:3000",
config["FRONTEND_DEV_URL"],
config["FRONTEND_STAGING_URL"],
config["FRONTEND_PROD_URL"],
]
# Others
favicon_path = "favicon.ico"
# Security
Expand Down

0 comments on commit 803b4b7

Please sign in to comment.