Skip to content

Commit

Permalink
chore(room-api+review-api): Update CORS url for localhost, minor upda…
Browse files Browse the repository at this point in the history
…te deps

Updates CORS url for localhost to match Streamlit's default url/port.
  • Loading branch information
christianfosli committed Jan 3, 2025
1 parent 4e2c8fc commit f43fc76
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 63 deletions.
67 changes: 34 additions & 33 deletions review-api/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion review-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
CorsLayer::new()
.allow_origin([
// adding frontend app for all environments for simplicity
"http://localhost:8000".parse()?,
"http://localhost:8501".parse()?,
"https://dev.stellerom.no".parse()?,
"https://www.stellerom.no".parse()?,
])
Expand Down
Loading

0 comments on commit f43fc76

Please sign in to comment.