Skip to content

Commit 03b7cc4

Browse files
committed
feat: update default CORS origins to allow all for development
1 parent 2d1a562 commit 03b7cc4

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

rust/leanspec-http/src/config.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,9 @@ fn default_cors_enabled() -> bool {
8686
}
8787

8888
fn default_cors_origins() -> Vec<String> {
89-
vec![
90-
"http://localhost:5173".to_string(), // Vite dev server
91-
"http://localhost:3000".to_string(), // Next.js
92-
"http://localhost:3333".to_string(), // Self
93-
"http://127.0.0.1:5173".to_string(),
94-
"http://127.0.0.1:3000".to_string(),
95-
"http://127.0.0.1:3333".to_string(),
96-
"tauri://localhost".to_string(), // Tauri
97-
]
89+
// Allow all origins by default for development convenience
90+
// In production, you should specify explicit origins
91+
vec![]
9892
}
9993

10094
/// UI preferences

0 commit comments

Comments
 (0)