From d77c908567782ba3bf5703fbbb5bb6e51cc4427c Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 3 Jan 2021 22:35:52 +0000 Subject: [PATCH] update Cors::allow_origin_fn docs --- actix-cors/src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-cors/src/builder.rs b/actix-cors/src/builder.rs index 534c73fd8..f9bce3d21 100644 --- a/actix-cors/src/builder.rs +++ b/actix-cors/src/builder.rs @@ -173,8 +173,8 @@ impl Cors { /// Determinate allowed origins by processing requests which didn't match any origins specified /// in the `allowed_origin`. /// - /// The function will receive a `RequestHead` of each request, which can be used to determine - /// whether it should be allowed or not. + /// The function will receive two parameters, the Origin header value, and the `RequestHead` of + /// each request, which can be used to determine whether to allow the request or not. /// /// If the function returns `true`, the client's `Origin` request header will be echoed back /// into the `Access-Control-Allow-Origin` response header.