A CORS allow list which allowes hosts, methods, and headers from a associated path.
This is a builder-like struct.
Use the
add_*
methods to add allowed origins, methods, and headers.
Multiple allow lists can be added to a
Cors
instance.
See the example at
Cors
.