Facebook动态评论-eventSource已被CORS政策阻止

问题描述 投票:1回答:1

我正在根据文档https://developers.facebook.com/docs/graph-api/server-sent-events/endpoints/live-comments/设置eventSource以从实时视频接收实时评论。但是我收到一个错误:“ CORS策略已阻止从源https://streaming-graph.facebook.com/xxx/live_comments?access_token=xxx从'https://social.upos.vn'访问资源:所请求的资源上没有'Access-Control-Allow-Origin'标头。”。如果您遇到过这种情况,请帮助我,非常感谢。

enter image description here

facebook api facebook-graph-api live-streaming
1个回答
0
投票

我遇到同样的问题。上周工作正常,但Google Chrome浏览器更新使其无法正常工作或在Facebook方面进行了更改。我每隔几秒钟切换回使用API​​以获得新评论。

© www.soinside.com 2019 - 2024. All rights reserved.