You've already forked AstralRinth
forked from didirus/AstralRinth
move to monorepo dir
This commit is contained in:
10
apps/labrinth/src/util/cors.rs
Normal file
10
apps/labrinth/src/util/cors.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use actix_cors::Cors;
|
||||
|
||||
pub fn default_cors() -> Cors {
|
||||
Cors::default()
|
||||
.allow_any_origin()
|
||||
.allow_any_header()
|
||||
.allow_any_method()
|
||||
.max_age(3600)
|
||||
.send_wildcard()
|
||||
}
|
||||
Reference in New Issue
Block a user