HTTP origins that are allowed in CORS requests.
A value of Nothing
indicates unrestricted cross-origin sharing and
results in *
as value for the Access-Control-Allow-Origin
HTTP
response header. Note if you send *
, credentials cannot be sent with the request.
A value other than Nothing
is a tuple that consists of a list of
origins and a Boolean flag that indicates if credentials are used
to access the resource via CORS.
Origins must be formated as described in
RFC6454 (section 6.2). In
particular the string *
is not a valid origin (but the string null
is).
Credentials include cookies, authorization headers and TLS client certificates.
For credentials to be sent with requests, the withCredentials
setting of
XmlHttpRequest
in the browser must be set to true
.