Enum hyper::header::AccessControlAllowOrigin
[-] [+]
[src]
pub enum AccessControlAllowOrigin { AllowStar, AllowOrigin(Url), }
The Access-Control-Allow-Origin
response header,
part of CORS.
The
Access-Control-Allow-Origin
header indicates whether a resource can be shared based by returning the value of the Origin request header, "*", or "null" in the response.
Spec: www.w3.org/TR/cors/#access-control-allow-origin-response-header
Variants
AllowStar | Allow all origins |
AllowOrigin | Allow one particular origin |