Set Allowed Origins
Sets allowed origins to the given set of origins.
Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/site/settings/cors
COPY
Request Body
AllowedOrigins
of type(s)
application/json
Required
This request body class requires all of the following:
InlineAllowedOrigins0
,
InlineAllowedOrigins1
{
"resultTotal": 0,
"pageCount": 0,
"page": 0,
"pageSize": 0,
"associations": [
{
"entityId": "string",
"associationId": "string"
}
],
"values": [
{
"origin": "string"
}
]
}
Responses
200
OK
Returns
AllowedOrigins
of type(s)
application/json;version=39.1
This response body class contains all of the following:
InlineAllowedOrigins0 ,
InlineAllowedOrigins1
"AllowedOrigins Object"
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/cloudapi/1.0.0/site/settings/cors