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()
|
||||
})
|
||||
);
|
||||
cfg.service(index::index_get);
|
||||
cfg.service(Files::new("/", "assets/"));
|
||||
cfg.service(
|
||||
web::scope("")
|
||||
.wrap(default_cors())
|
||||
.service(index::index_get)
|
||||
.service(Files::new("/", "assets/")),
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user