<noframes id="vvxvv"><pre id="vvxvv"><strike id="vvxvv"></strike></pre>
<p id="vvxvv"></p>

      <big id="vvxvv"></big>

          2020-09-15 2228

          首页 » 文档 » 环境搭建

          手机版分享画报不显示缩略图解决方法

          如果手机版域名和图片所在域名不一致,会产生跨域错误导致图片不显示




          需要在图片所在站点设置Access-Control-Allow-Origin,以下为设置方法:

          Apache
          <IfModule mod_headers.c>    
          Header set Access-Control-Allow-Origin 'origin-list'
          </IfModule>
           
          Nginx
          add_header 'Access-Control-Allow-Origin' 'origin-list'
           
          IIS
          设置HTTP 响应头,如下图:

           
           
          或者在web.config里添加以下代码:

          <system.webServer>
                <httpProtocol>
                  <customHeaders>
                    <add name="Access-Control-Allow-Origin" value="origin-list" />
                  </customHeaders>
                </httpProtocol>
          </system.webServer>
           
          origin-list需要替换成手机版的具体域名 例如:https://m.destoon.com/

           
          以上内容是否对您有帮助?点击反馈加群交流

          公司简介   |   联系方式   |   合作代理   |   使用协议   |   意见反馈
          被按摩出轨人妻被黑人中出

          <noframes id="vvxvv"><pre id="vvxvv"><strike id="vvxvv"></strike></pre>
          <p id="vvxvv"></p>

              <big id="vvxvv"></big>