Files
AstralRinth/apps/labrinth/src/util/cors.rs
2025-01-30 15:52:13 -08:00

12 lines
270 B
Rust

use actix_cors::Cors;
// Updating this? Remember to update the ratelimit CORS too!
pub fn default_cors() -> Cors {
Cors::default()
.allow_any_origin()
.allow_any_header()
.allow_any_method()
.max_age(3600)
.send_wildcard()
}