Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 带有来自Amazon S3的图像的Img标记不工作_Html_Image_Amazon Web Services_Amazon S3_Src - Fatal编程技术网

Html 带有来自Amazon S3的图像的Img标记不工作

Html 带有来自Amazon S3的图像的Img标记不工作,html,image,amazon-web-services,amazon-s3,src,Html,Image,Amazon Web Services,Amazon S3,Src,我将一个图像保存到我的bucket中,并且url可以正常工作。我在将其添加到img标签时遇到问题 <img src="url(https://s3.us-east-2.amazonaws.com/aaronstestbucketpnw/Abraham-lincoln-quote-internet-hoax-fake.jpeg)" alt="not working"> 这是JSFIDLE 使用: <img src="https://s3.us-east-2.amazonaw

我将一个图像保存到我的bucket中,并且url可以正常工作。我在将其添加到img标签时遇到问题

<img src="url(https://s3.us-east-2.amazonaws.com/aaronstestbucketpnw/Abraham-lincoln-quote-internet-hoax-fake.jpeg)" alt="not working">

这是JSFIDLE

使用:

<img src="https://s3.us-east-2.amazonaws.com/aaronstestbucketpnw/Abraham-lincoln-quote-internet-hoax-fake.jpeg" alt="not working">


当我这样做时,我会(在inspector中)出现一个跨源读取阻塞(CORB)错误-显然,Chrome阻止链接到其他网站上的img源?粗略的搜索把我带到了这里(),但我不知道如何应用它。@MattBillman请创建一个新问题,而不是通过对旧问题的评论提问。给你!我会喜欢你的洞察力: