Migration from v3 to v4 leads to CSRF and CSP problems
### Issue Description

When updating packages and doing all the stuff from the migration guide. I get a CSRF Error when firefox tries to find a favicon.ico.
When I disable CSRF I get a CSP error for the same reason.

### Link to Reproduction

www.example.com

### Reproduction Steps

_No response_