Skip to content

神马搜索mip容器中推荐接口无返回内容 #1350

@html5david

Description

@html5david

BUG 描述
链接:https://m.sm.cn/c/s/m.youlai.cn/video/mip/365815.html
在神马搜索mip容器下的站点使用custom组件请求推荐接口会报错ypeError: Network request failed at XMLHttpRequest.r.onerror(接口是:https://mipengine.baidu.com/common?logid=&query=&title=%E8%83%8E%E5%84%BF%E8%83%BD%E4%B8%8D%E8%83%BD%E5%81%9A%E7%A3%81%E5%85%B1%E6%8C%AF&frsrcid=&originalUrl=m.youlai.cn/video/mip/365815.html&eqid=&fromSite=&accid=x)
原因是mipengine.baidu.com对神马域名没有开放跨域请求许可,神马站点域名是*.sm.cn,.sm-tc.cn,.transcode.cn,*.uczm.cn 请添加跨域请求许可,感谢。

复现步骤
重新复现 Bug 的步骤

  1. 访问:https://m.sm.cn/c/s/m.youlai.cn/video/mip/365815.html
  2. 即可看到页面中推荐模块没有出现,同时console中出现报错

期望结果

  1. 开放神马跨域请求mipengine.baidu.com的许可,使站点在神马mip下能够正常返回内容。

截图
image

环境及版本信息:
chrome

其他信息
1、在custom中看到请求时候会添加noshell、notiframe等参数也可以正常跨域请求,如不能为神马开放跨域,是否可在custom组件中对神马做判定后正常跨域
2、另外有没有其他接口也涉及跨域问题,如有辛苦一并加上神马的许可。感谢。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions