从http而非https加载图像时出现403错误 [英] 403 error for loading image from http and not https

查看:531
本文介绍了从http而非https加载图像时出现403错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题类似于这个,但是我正在使用html&仅限javascript。

My question is similar to this one, but I'm using html & javascript only.

如果我尝试通过https加载此图像,它会显示图像就好了。

If I try to load this image over https it shows the image just fine.

<img src="http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_SX100.jpg">

除了此警告


混合内容:''的页面是通过HTTPS加载的,但请求的是不安全的图像' http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_SX100.jpg '。此内容也应通过HTTPS提供。

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure image 'http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_SX100.jpg'. This content should also be served over HTTPS.

但是通过http它会产生403错误。

But over http it produces this 403 error.


获取 http://ia.media-imdb.com/images/M/MV5BMjEyMjcyNDI4MF5BMl5BanBnXkFtZTcwMDA5Mzg3OA@@._V1_SX100.jpg 403(禁止)

我不明白为什么因为图片网址是http。

不知道该怎么办?

I don't understand why because the image url is http.
Any idea what to do?

非常感谢!

推荐答案

它被称为带宽盗窃或更确切地说是预防。

It's called "bandwidth theft" or rather prevention thereof.

通过HTTPS您的推荐人不会被发送,但通过HTTP它会发送。在后一种情况下,IMDb显然拒绝在您的网站上显示其资产。如果您访问网址也会显示:推荐被拒绝

Over HTTPS your referrer doesn't get sent, but over HTTP it does. In the latter case, IMDb apparently refuses to show their assets on your site. This is also shown if you visit the URL: "Referral Denied".

您是不允许链接或重新托管IMDb资产


框架:未经明确书面同意,您不得构建或利用框架技术封装IMDb的任何商标,徽标或其他专有信息(包括图像,文本,页面布局或形式)。

Framing: You may not frame or utilize framing techniques to enclose any trademark, logo, or other proprietary information (including images, text, page layout, or form) of IMDb without express written consent.

这篇关于从http而非https加载图像时出现403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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