Force all third party requests from Youku to be over https and not http

心不动则不痛 提交于 2021-01-29 13:24:46

问题


I have a website that embeds the Youku video player. This player is loading some insecure resources (over http instead of https). The player itself is loaded over https as outlined in this SO thread, but it loads some insecure resources. The insecure resource in question can be accessed via https: https://g2.ykimg.com/052100015C8F58A9AD97EB1AC20B9132

Is there a way to force all request being made from my Vue app to be loaded via https?


回答1:


In the end the solution was to include a meta tag in the header.

'<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">


来源:https://stackoverflow.com/questions/56481335/force-all-third-party-requests-from-youku-to-be-over-https-and-not-http

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