CORS error in live stream on browser

0

I have setup a cloudfront distribution for HLS live streaming. Sometimes the playback is stopped as manifest & .ts chunks fetch is blocked due to CORS, however status received is 200 OK from Cloudfront.
The error description shows that Preflight request & initiator requests are from different domains. How do I make CF to skip this check or any alternative solution.

Also this issue is intermittent.

What changes do I make on CF to correct this issue?

已提問 3 年前檢視次數 1282 次
2 個答案
0

Hi,

Can you follow this document to configure CORS in your CloudFront and see if that fixes your issue. https://aws.amazon.com/premiumsupport/knowledge-center/no-access-control-allow-origin-error/

  • Sam
AWS
已回答 2 年前
0

Thanks for the update. However I was able to correct it by using custom mediapackage cache & header policy on cloudfront.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南