Chrome Cast from mobile using cloudflare streams Allow origins issue

Self hosted stream with Access-Control-Allow-Origin works for chromecast, but not when hosted on Cloudflare streams.

Does Cloudflare stream allow to cast hosted .m3u8 files for Chrome cast.

Does anyone have any idea how to resolve this issue ?

Can you share the screenshot of the error from Chomecast that suggests this is an issue with Allow Origin header?

Thanks Zaid for looking into this.

Unfortunately we cannot display any error from chromecast.

After checking we could not find any allow origin header issue.

IS there something that prevents chromecast from playing the stream from Cloudflare, as when we switch to our own hosted .m3ue file on our server, there are no issues.

HTTP/2 200
date Wed, 09 Feb 2022 21:27:26 GMT
content-type application/x-mpegURL
access-control-allow-origin *
cache-control public, max-age=600
vary origin, referer
access-control-allow-headers range
access-control-expose-header cf-ray
stream-dw-version 2022.2.2
expect-ct max-age=604800, report-uri=https://report-uri.Cloudflare.com/cdn-cgi/beacon/expect-ct
strict-transport-security max-age=15552000
server Cloudflare
cf-ray 6db02e83582c3b27-SJC
alt-svc h3=:443; ma=86400, h3-29=:443; ma=86400