I noticed that user's icons were not showing up next to their names in the contacts menu on my production server. I had recently upgraded from Nextcloud 14. I recreated another Nextcloud instance from the official Docker image (nextcloud:latest) from DockerHub for testing purposes and I still see the same issue.
User icons should be displayed next to the users' names. The console should not show errors.
No icons appear next to the users. The developer console shows the following error:
Refused to load the image 'http://localhost/remote.php/dav/addressbooks/system/system/system/Database:user1.vcf?photo&size=64' because it violates the following Content Security Policy directive: "img-src 'self' data: blob:".


Note that the server URL is https://localhost, not http://localhost. The error appears because the image URL is prefixed with http:// instead of https://. Ideally, this should be a relative link and should not try to access the HTTP URL when the server was accessed through HTTPS.
I noticed this issue on the latest Chrome, but can confirm that it is present on the latest Safari and Firefox as well.
Same problem on the Activities page.


@danielkesselberg Thank you for your suggestion! Adding 'overwriteprotocol' => 'https', to config.php resolved the issue!
Most helpful comment
@danielkesselberg Thank you for your suggestion! Adding
'overwriteprotocol' => 'https',toconfig.phpresolved the issue!