You've already forked AstralRinth
forked from didirus/AstralRinth
Fix CORS (#4610)
This commit is contained in:
@@ -77,8 +77,12 @@ pub fn root_config(cfg: &mut web::ServiceConfig) {
|
|||||||
}.boxed_local()
|
}.boxed_local()
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
cfg.service(index::index_get);
|
cfg.service(
|
||||||
cfg.service(Files::new("/", "assets/"));
|
web::scope("")
|
||||||
|
.wrap(default_cors())
|
||||||
|
.service(index::index_get)
|
||||||
|
.service(Files::new("/", "assets/")),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ pub fn utoipa_config(
|
|||||||
) {
|
) {
|
||||||
cfg.service(
|
cfg.service(
|
||||||
utoipa_actix_web::scope("/v3/analytics")
|
utoipa_actix_web::scope("/v3/analytics")
|
||||||
|
.wrap(default_cors())
|
||||||
.configure(analytics_get::config),
|
.configure(analytics_get::config),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user