What happened?
Description
We use a separate subdomain for access to the control panel that differs from @web. It looks like changes introduced in this commit have changed the way that actionUrl is generated, and result in a CORS error when the login form is submitted (POSTing to a different URL than the CP uses).
Specifically, setting the $useRequestHostInfo value to true ends up setting the $baseUrl to use @web, whereas it was previously using the value of static:baseCpUrl().
Steps to reproduce
- Configure a
baseCpUrl that differs from the front end site URL.
- Attempt to log in to the CP
Expected behavior
Successful login
Actual behavior
CORS error since the domain for the actionUrl doesn't match the CP's domain
Craft CMS version
5.0.0-beta.6
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
We use a separate subdomain for access to the control panel that differs from
@web. It looks like changes introduced in this commit have changed the way thatactionUrlis generated, and result in a CORS error when the login form is submitted (POSTing to a different URL than the CP uses).Specifically, setting the
$useRequestHostInfovalue totrueends up setting the$baseUrlto use@web, whereas it was previously using the value ofstatic:baseCpUrl().Steps to reproduce
baseCpUrlthat differs from the front end site URL.Expected behavior
Successful login
Actual behavior
CORS error since the domain for the
actionUrldoesn't match the CP's domainCraft CMS version
5.0.0-beta.6
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions