Internal Server Error - https://vCenterFQDN:443/sdk/vimService invocation failed with "java.net.SocketTimeoutException: Read timed out"[########-####-####-####-############] | pool-jetty-88372 | CorsRequestFilte | Invalid cross-origin request to https://########/cloudapi/1.0.0/ssl/trustedCertificates detected. Request Origin: https://vcd.example.com, Allowed Origins: https://vcd1.example.comVMware Cloud Director 10.x
To resolve this issue, add the Fully Qualified Domain Name (FQDN) from the Request Origin found in the logs to the CORS whitelist by following the below steps:
1. To modify the CORS settings, use the following URL to access the CORS settings via the Cloud API:
https://{{base-url}}/cloudapi/1.0.0/site/settings/cors
NOTE:
https://<base-url>/api-explorer/provider#/cors2. Retrieve Current CORS Settings using the below query:
GET /1.0.0/site/settings/cors
3. Update the current CORS settings using the below query:
PUT /cloudapi/1.0.0/site/settings/cors
NOTE: Add three entries per domain to support the relevant protocols:
Example: vcd.domain.local{"origin": "vcd.domain.local"},{"origin": "http://vcd.domain.local"},{"origin": "https://vcd.domain.local"}
4. Once the required FQDN entries are added to the CORS whitelist, attempt the vApp deployment again. It should now complete successfully.