开发者社区 问答 正文

钉钉在安卓上报跨域问题,ios是正常的。

自建微应用,接入钉钉。使用到了jsapi验证,写法是ES6写法,Promise回调函数。
但是在安卓上无法进入,显示了应用名称。但是无法显示内容。
使用谷歌插件调试,提示错误,  但是在pc端谷歌浏览器调试和ios的钉钉里面调试是正常的。后台也写了允许跨域。



A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://10.50.2.51:8081' is therefore not allowed access.
10.50.2.51/:1 No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.50.2.51:8081' is therefore not allowed access.
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://10.50.2.51:8081' is therefore not allowed access.

展开
收起
keysple 2017-08-03 14:28:45 5426 分享
分享
版权
举报
2 条回答
写回答
取消 提交回答
  • Re钉钉在安卓上报跨域问题,ios是正常的。
    楼主 现在问题找到了嘛?我也碰到了
    2017-08-30 10:12:58 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
  • Re钉钉在安卓上报跨域问题,ios是正常的。
    刚刚测试发现,进入别的第三方微应用也报错。同样是跨域错误。
    但是他们的页面能显示,我的页面不能显示。
    2017-08-03 14:35:04 举报
    赞同 评论

    评论

    全部评论 (0)

    登录后可评论
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等