Web UI stuck on initializing

I found the error. Nginx defines a CSP header in the nginx.conf that all other configs derive from. This config somehow changed automatically and the header defined in there overrode the one sent by nexus. I removed the CSP header from that config and everything works fine now.