Skip to content

Commit

Permalink
Update CORS with new MCF url (#405)
Browse files Browse the repository at this point in the history
* Update CORS with new MCF url

* bump version

* fix the regex to use or operator
  • Loading branch information
diversemix authored Oct 30, 2024
1 parent aa3bc31 commit 97492a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ async def lifespan(app_: FastAPI):
r"https://.+\.dev.climatepolicyradar\.org|"
r"https://.+\.sandbox\.climatepolicyradar\.org|"
r"https://climate-laws\.org|"
r"https://.+\.climate-laws\.org"
r"https://.+\.climate-laws\.org|"
r"https://climateprojectexplorer\.org|"
r"https://.+\.climateprojectexplorer\.org"
)

# Add CORS middleware to allow cross origin requests from any port
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "navigator_backend"
version = "1.19.6"
version = "1.19.7"
description = ""
authors = ["CPR-dev-team <[email protected]>"]
packages = [{ include = "app" }, { include = "tests" }]
Expand Down

0 comments on commit 97492a0

Please sign in to comment.