mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-20 09:39:38 +01:00
Relax CORS restrictions for local development
This commit is contained in:
parent
eb8ed71c35
commit
38737bc725
@ -128,9 +128,8 @@ async fn main() -> std::io::Result<()> {
|
||||
#[cfg(feature = "cors_for_local_development")]
|
||||
let server = HttpServer::new(|| {
|
||||
let cors = Cors::default()
|
||||
.allowed_origin("http://localhost:1234")
|
||||
.allowed_origin("https://web.postman.co")
|
||||
.allowed_methods(vec!["GET", "POST"])
|
||||
.allow_any_origin()
|
||||
.allow_any_method()
|
||||
.allow_any_header()
|
||||
.max_age(3600);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user