mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +01:00
update Cors::allow_origin_fn docs
This commit is contained in:
parent
91e91c4327
commit
d77c908567
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user