NextCloud refusing log in from a domain it should accept

Please check the relevant browser console tabs as suggested in the support template.’

Also use occ config:list system to make sure you’re viewing the real merged configuration (also noted in the support template).