When using Frontegg hosted solution, the redirect URLs that you'd like to redirect to must be added under the Environment > Login Method > Hosted login > URLs section.
If you will try to redirect to a URL that isn't added, you will get the below error: