Function get_cors
Source pub fn get_cors(websites: Vec<String>) -> Cors
Expand description
Configures and returns a CORS middleware based on provided website origins.
§Arguments
websites - A vector of allowed website origins for CORS.
§Returns
A configured Cors middleware instance.