pub fn validate_origin(origin: &str) -> CorsValidationResultExpand description
Validates an origin and returns detailed information.
Useful for debugging and logging CORS decisions.
ยงExample
use reasonkit_web::cors::validate_origin;
let result = validate_origin("http://localhost:3000");
assert!(result.allowed);
println!("Reason: {}", result.reason);