跨域访问问题怎么解决
starletzhong 发布于2019-01 浏览:3250 回复:3
1
收藏

Failed to load https://aip.baidubce.com/oauth/2.0/token: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9527' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

收藏
点赞
1
个赞
共3条回复 最后由用户已被禁言回复于2022-04
#4彦丶子凡回复于2019-02

跨域是前端最简单的问题,你让服务器给你加一个接口,你调用你自己的服务器接口,服务器去调用百度的

你那个前端和服务器必须是同一个域下面

0
#3honey_yaoxiu回复于2019-02

需要通过服务器调用百度的接口,不能从前端直接调用,数据必须经过您自己的服务器

0
#2honey_yaoxiu回复于2019-02

跨域暂不支持

0
TOP
切换版块