1
0
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:
monsterkrampe 2023-03-27 14:42:42 +02:00
parent eb8ed71c35
commit 38737bc725
No known key found for this signature in database
GPG Key ID: B8ADC1F5A5CE5057

View File

@ -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);