|
You can debug this issue by checking the cors filter "list" maintained by VCD.
Run the following cell-management-tool command to see the list of valid urls to access the VCD cells:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -l
For example:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -l
Property "webapp.allowed.origins" has value "https://example.com,xx.xx.xx.xx,http://xx.xx.xx.xx,http://example.com,https://xx.xx.xx.xx,https://xx.xx.xx.xx,http://xx.xx.xx.xx,xx.xx.xx.xx,https://example1.com,https://example2.com,https://example3.com"
Note: This list is stored as a comma separated string, with no spaces between entries.
This list should contain:
Compare the specified URL with the above "list" to identify the issue.
To update the webapp.allowed.origins property, run this command:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v <comma_separated_list_without_spaces>
For example, if you want to include a new URL, such as https://example3.com to the existing cors list, use this command:
/opt/vmware/vcloud-director/bin/cell-management-tool manage-config -n webapp.allowed.origins -v "https://example.com,xx.xx.xx.xx,http://xx.xx.xx.xx,http://example.com,https://xx.xx.xx.xx,https://xx.xx.xx.xx,http://xx.xx.xx.xx,xx.xx.xx.xx,https://example1.com,https://example2.com,https://example3.com"
Note: The -v flag will update the configured URLS. The -v command will overwrite the values. So if you want to add a single URL, you must include the output from -l, then add in the additional URL at the end.