2023-08-02 14:43:04 -07:00
|
|
|
use actix_cors::Cors;
|
|
|
|
|
|
2025-01-31 00:52:13 +01:00
|
|
|
// Updating this? Remember to update the ratelimit CORS too!
|
2023-08-02 14:43:04 -07:00
|
|
|
pub fn default_cors() -> Cors {
|
|
|
|
|
Cors::default()
|
|
|
|
|
.allow_any_origin()
|
|
|
|
|
.allow_any_header()
|
|
|
|
|
.allow_any_method()
|
|
|
|
|
.max_age(3600)
|
|
|
|
|
.send_wildcard()
|
|
|
|
|
}
|