You've already forked AstralRinth
forked from didirus/AstralRinth
Add launcher analytics (#661)
* Add more analytics * finish hydra move * Finish websocket flow * add minecraft account flow * Finish playtime vals + payout automation
This commit is contained in:
10
src/util/cors.rs
Normal file
10
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()
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
pub mod captcha;
|
||||
pub mod cors;
|
||||
pub mod env;
|
||||
pub mod ext;
|
||||
pub mod guards;
|
||||
|
||||
Reference in New Issue
Block a user