[{"label":"Latest (v36.3)","version":"latest"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director

Set Allowed Origins

Description

Sets allowed origins to the given set of origins.

Request

Request

URL

URL


put
https://{api_host}/cloudapi/1.0.0/site/settings/cors
Copy

Request Body

Request Body

AllowedOrigins of type(s) application/json Required
This request body class requires all of the following: Page, InlineAllowedOrigins1
Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns AllowedOrigins of type(s) application/json;version=36.3
This response body class contains all of the following: Page, InlineAllowedOrigins1

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl -X PUT -H "Content-Type: application/json" -d '{}' https://{api_host}/cloudapi/1.0.0/site/settings/cors
Vendor Extensions

Vendor Extensions

This operation contains the following vendor extensions defined in the spec:
x-vcloud-event: com/vmware/vcloud/event/cors/allowedOrigins/modify


[{"label":"Latest (v36.3)","version":"latest"},{"version":"v36.2"},{"version":"v36.1"},{"version":"v36.0"},{"link":"https://developer.vmware.com/apis/1046/vmware-cloud-director","version":"v35.0"}]
vmware-cloud-director
Feedback

Was this page helpful?