Embedding Discourse Comments via Javascript over https

I get a lot of errors of mixed content because my website is in HTTPS and the discourse subdomain too.
But the javascript embed code are trying to get HTTP links

    Uncaught (in promise) no-response: no-response :: [{"url":"http://discourse.domain.com/images/discourse-logo-sketch.png"}]
        at a.makeRequest (https://discourse.domain.com/javascripts/workbox/workbox-strategies.prod.js:1:2145)

_embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:6 Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '' in a call to 'postMessage'.
    at u (https://discourse.domain.com/assets/embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:1:105)
    at window.onload (https://discourse.domain.com/assets/embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:1:523)
u @ _embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:6
window.onload @ _embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:36
load (async)
(anonymous) @ _embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:25
(anonymous) @ _embed-application-590793ad7c35377ed13fcf562bc5faefeb2d67a33a71f1f98e420d6d94a31b4a.js:1
1 Like

Check your Discourse site settings for force https. Make sure it’s enabled.

5 Likes

Yes, it works fine now. Thanks

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.