Changing domain name (Nextcloud, Docker, Traefik)

Hi, I am trying to change the domain name on an existing docker installation. overwrite.cli.url and trusted_domains have been updated with new domain name. After logging in, nothing happens unless a refresh my browser, then nextcloud opens and seems to be behaving as expected.

Only clue I found so far is this error message in my browser dev console when I click the login button:

Refused to send form data to ‘http://myNEWdomainname.com/’ because it violates the following Content Security Policy directive: “form-action ‘self’ http://myOLDdomainname.com”.

I cannot find any reference to myOLDdomainname.com anywhere so far in my container. Also, it works fine with Firefox, but not in Chrome/Edge.

Anyone can help with this? Thanks

try removing browser local data like cache, cookies etc. (try “private” mode). maybe there is some local issue.