How to fix configuration if I can't access the Dashboard?

I was changing the whitelisted domains and CORs settings and must have accidentally put the wrong domain. Now I can’t access the Dashboard anymore because it the log says “Untrusted host”.

How do I fix this without doing a reinstall? I presume I can edit the db somehow.

3 posts were merged into an existing topic: Untrusted Host error