- Yugaware 2.4 and above
- Using "Replicated"
When attempting to log into the Yugaware Admin Console, clicking the "Login" button will appear to do nothing. The following message will be present in the docker logs from the Yugaware container:
$ sudo docker container logs yugaware | grep "Invalid CORS"
WARN AbstractCORSPolicy.scala:311 [application-akka.actor.default-dispatcher-2104] Invalid CORS request;Origin=Some(https://<hostname>:<port>);Method=GET;Access-Control-Request-Headers=None
In order to increase product security, Cross-Origin Resource Sharing (CORS) was implemented in Yugabyte platform as of version 2.4. As a result, the URL being used to access the Yugaware UI must match the hostname that is configured in the product. The hostname in the error message above shows the URL that was used in the https request.
The currently configured hostname or IP address can be found in the Replicated UI. Click on "Settings" at the top, and then "Application config" on the left. If necessary, the hostname or IP address can be changed on this screen.