1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00

update Cors::allow_origin_fn docs

This commit is contained in:
Rob Ede 2021-01-03 22:35:52 +00:00
parent 91e91c4327
commit d77c908567
No known key found for this signature in database
GPG Key ID: C2A3B36E841A91E6

View File

@ -173,8 +173,8 @@ impl Cors {
/// Determinate allowed origins by processing requests which didn't match any origins specified /// Determinate allowed origins by processing requests which didn't match any origins specified
/// in the `allowed_origin`. /// in the `allowed_origin`.
/// ///
/// The function will receive a `RequestHead` of each request, which can be used to determine /// The function will receive two parameters, the Origin header value, and the `RequestHead` of
/// whether it should be allowed or not. /// 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 /// If the function returns `true`, the client's `Origin` request header will be echoed back
/// into the `Access-Control-Allow-Origin` response header. /// into the `Access-Control-Allow-Origin` response header.