hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.38k stars 916 forks source link

选择【添加图片链接】,有的图片地址可以成功显示在展示区,有的图片地址不能成功显示在展示区。 #777

Open sunnyjanet opened 2 years ago

sunnyjanet commented 2 years ago

举例:不能成功显示在展示区的图片链接: https://bkimg.cdn.bcebos.com/pic/a5c27d1ed21b0ef4882d95afd4c451da80cb3e7d?x-bce-process=image/watermark,image_d2F0ZXIvYmFpa2UxMTY=,g_7,xp_5,yp_5/format,f_auto

展示区效果: image

右侧network显示报错403: image

jiawulin001 commented 2 years ago

你提供的图片地址,服务器做了限制拒绝访问,下面是我用一个正常的图片地址做的对比。

下面页面使用http-server启动一个web服务,你提供的图片显示403拒绝访问,百度的可以正常访问。 index.html:

<html>
    <body>
       <!--你的图片地址-->
        <img src="https://bkimg.cdn.bcebos.com/pic/a5c27d1ed21b0ef4882d95afd4c451da80cb3e7d?x-bce-process=image/watermark,image_d2F0ZXIvYmFpa2UxMTY=,g_7,xp_5,yp_5/format,f_auto">

       <!--正常可以访问的图片地址-->        
        <img src="https://img1.baidu.com/it/u=2175350495,1780360516&fm=253&fmt=auto&app=138&f=JPEG?w=240&h=240">        
    </body>
</html>

image