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")]
|
#[cfg(feature = "cors_for_local_development")]
|
||||||
let server = HttpServer::new(|| {
|
let server = HttpServer::new(|| {
|
||||||
let cors = Cors::default()
|
let cors = Cors::default()
|
||||||
.allowed_origin("http://localhost:1234")
|
.allow_any_origin()
|
||||||
.allowed_origin("https://web.postman.co")
|
.allow_any_method()
|
||||||
.allowed_methods(vec!["GET", "POST"])
|
|
||||||
.allow_any_header()
|
.allow_any_header()
|
||||||
.max_age(3600);
|
.max_age(3600);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user