Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue调用sdk跨域问题 #24

Open
yoohhal opened this issue Jun 22, 2020 · 1 comment
Open

vue调用sdk跨域问题 #24

yoohhal opened this issue Jun 22, 2020 · 1 comment

Comments

@yoohhal
Copy link

yoohhal commented Jun 22, 2020

我在vue工程中安装了baidu-aip-sdk,照着文档里的demo开发时,发现有如图所示的跨域问题,由于调用接口都是sdk封装好的,因此也无法采用proxytable的方式解决跨域,请问有什么办法可以解决呢?
image

@PeterPanZH
Copy link
Member

这个sdk是nodejs用的,浏览器使用的话会有跨域问题。可以通过nodejs搭建proxy解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants