强制所有来自优酷的第三方请求都通过https而不是http [英] Force all third party requests from Youku to be over https and not http

查看:88
本文介绍了强制所有来自优酷的第三方请求都通过https而不是http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个嵌入了优酷视频播放器的网站.该播放器正在加载一些不安全的资源(通过http而不是https).播放器本身通过此SO中概述的https加载,但它会加载一些不安全的资源.可以通过https访问有问题的不安全资源: https://g2.ykimg.com/052100015C8F58A9AD97EB1AC20B9132

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

是否可以强制通过https加载我的Vue应用发出的所有请求?

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

推荐答案

最后,解决方案是在标头中包含一个meta标记.

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而不是http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆