pillow_http/
cors.rs

1pub struct Cors {
2    orgins: Vec<String>,
3}
4
5impl Cors {
6    pub fn new_all() -> Self {
7        Self {
8            orgins: vec!["*".to_string()],
9        }
10    }
11
12    pub fn new_whitelist(whitelist: Vec<String>) -> Self {
13        Self { orgins: whitelist }
14    }
15}