Instant Games Content Security Policy

随声附和 提交于 2019-12-11 14:59:27

问题


Does anyone know if there's a way around this security policy for Facebook Instant Games? I'm trying to load a video using a local blob that I'm downloading using Fetch().

Content Security Policy: The page’s settings blocked the loading of a resource at blob:https://XYZ (“default-src https://XYZ”)

Using the video's direct URL as the video.src isn't an option for me. Any thoughts?


回答1:


I work on the Instant Games team. The preferred approach is to store any assets for your Instant Game in the Instant Game bundle itself.

Having said this we've reviewed this and we think it will open up more flexibility on the platform if we open up the blob protocol in media-src, so this should now work.



来源:https://stackoverflow.com/questions/49122173/instant-games-content-security-policy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!