The discussion addresses a CORS issue on meta.discourse.org causing mixed content warnings and preventing the display of the favicon topic count. watchmanmonitor reported seeing a green lock error due to blocked images from cdn-enterprise.discourse.org. While zogstrip suggested this was limited to oneboxed content, gerhard clarified the issue affects the main page when the ‘Show new / updated topic count on browser icon’ preference is enabled. gerhard identified the root cause as a missing Access-Control-Allow-Origin header on S3, which prevents the browser from loading the favicon. The group discussed potential solutions, including documentation updates and enabling CORS on S3 setups. sam initially noted the difficulty in enabling CORS headers, but later confirmed in post 11 that the issue has been resolved across all setups, including S3 configurations.
I wasn’t getting a green lock on meta - turned out to be that I visited a topic with mixed content, but I see that this is happening on meta:
Image from origin ‘https://cdn-enterprise.discourse.org/meta’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://meta.discourse.org’ is therefore not allowed access.
This is happening when “Show new / updated topic count on browser icon” is enabled in the user preferences. The missing Access-Control-Allow-Origin header on S3 prevents the topic count to show up in the favicon.
Since the topic about Favicon notification was closed as “complete” I’d like to point out, that there’s still an issue with CORS that can prevent it from working properly.
I guess this should be mentioned in some documentation about S3 and it would be great if this header could be enabled here on meta.
I’m not a S3 user. Maybe we should move this out of Lounge in order to find someone willing to document this?
Anyway, the solution posted on stackoverflow looks promising…