I’m running into the same problem with IONOS. Just updated to Kirby 3.6.5 because I remembered reading about URL detection problems in the release notes but it didn’t fix it for me. I redirect the non-www url to the www url. The the non-www domain gets detected leading to the noted cross-origin errors.
Edit: the hardcoded www-URL in config.php helped. The domain specific config without the www didn’t work. Note that IONOS needs the RewriteBase / turned on.
Edit-2: the URL-list solves it the best for now since I can have both my local development and the live url in there and it picks the correct one.
config.www.example.com.php and config.example.com.php both have url set to https://www.example.com, assets still want to be loaded from https://example.com
RewriteBase is turned on and I’m on Kirby 3.6.6
Any ideas?
//EDIT
Ok, wenn I add the url parameter with www to the general config.php it works on the remote server… assets are now loaded from www.example.com
BUT on localhost it STILL wants to load the assets from www.example.com even with config.localhost.php url set to http://localhost
Something’s not right here: It seems like the url setting in the domain specific configs is not considered…?! I tried setting url in config.www.example.com.php to https://www.google.de and it didn’t change anything.