I am seeing the following errors in the Development tools, I added it connection-src and default-src, but when I try and login it still bounces between the frontend and the back office, in an infinite loop.
Can you please do a quick test:
Temporarily disable your CSP entirely in code. If the loop stops, you know it’s a connect-src or script-src issue. If the loop continues, the problem is Authentication Persistence (Cookies handshake).
If you nee the default backoffice CSP again, if you set up a fresh site and use the new import feature, you can copy it from the evaluation tab and import back into your site.
I have done that and got back in, I have removed all ref to local host and it working as expected again. Took out the over ride in the appsetting and the site behaving as normal. I guess it was some thing I added to do woth local host.