usehttp::Method;usetower_http::cors::{Any, CorsLayer};usecrate::config::ServerOptions;pubfncors_layer(_options:&ServerOptions)-> CorsLayer{// TODO: Make this configurable
CorsLayer::new()// allow `GET` and `POST` when accessing the resource
.allow_methods([Method::GET,Method::POST])// allow requests from any origin
.allow_origin(Any)}