Skip to content

Commit

Permalink
get valid CORS origins from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Jul 18, 2024
1 parent 2b1eff7 commit d0e9d5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/util/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
RUN_ENV = get_run_environment()
logger = get_logger()

extra_origins = []
if RUN_ENV != "prod":
extra_origins = ["http://localhost:5173"]
extra_origins = os.environ.get("ValidCorsOrigins", "https://resumes.acm.illinois.edu").split(",")

cors_config = CORSConfig(
allow_origin="https://resumes.acm.illinois.edu",
Expand Down

0 comments on commit d0e9d5b

Please sign in to comment.