Search code examples
chromecastgoogle-castdrmmixed-contentcustom-receiver

Mixed content blocking in chrome cast receiver app


I am trying to play a DRM protected content using Chromecast custom receiver. I am following this doc https://developers.google.com/cast/docs/custom_receiver.

But it is not working for me. It gives the following error log.

Mixed Content: The page at 'https://abcdefgfgh/index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://mytestvideo’. This content should also be served over HTTPS.

Please advice. Thanks in advance.


Solution

  • Looks like the log there is descriptive enough as to what it means. You need to have all your video content to be served over https (SSL should be signed by a known authority, not a self-signed one) and the server also has to provide the appropriate CORS headers. Please address those and see if that helps or not. As a side note, you might want to grab our reference receiver as your starting point; it already does a lot of the work for you.