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

你的api是你本地的 #1

Open
william-xue opened this issue Apr 1, 2018 · 6 comments
Open

你的api是你本地的 #1

william-xue opened this issue Apr 1, 2018 · 6 comments

Comments

@william-xue
Copy link

No description provided.

@savoygu
Copy link
Collaborator

savoygu commented Apr 1, 2018

是的,豆瓣api直接访问不了,你可以进入到 douban 目录中,执行 node app.js 起一个本地代理访问豆瓣api

@F-loat
Copy link

F-loat commented Apr 1, 2018

应该可以直接访问的吧

@savoygu
Copy link
Collaborator

savoygu commented Apr 1, 2018

我这边一直是 403 禁止访问
image

@maomaomao123
Copy link

api本地。如何设置代理

@flyfox11
Copy link

flyfox11 commented Apr 2, 2018

由于豆瓣接口对微信来源的请求做了限制,所以现在要在微信里使用豆瓣的接口,需要设置服务器代理,或者自己通过写接口的形式转发请求@maomaomao123 ,具体服务器设置代理,nginx和apache都有相关方法和一系列博客

@Keyans
Copy link

Keyans commented May 11, 2018

在本地测试的时候 process.env.METHOD 会为undefined 需要多加一个判断进行本地调试
image

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

6 participants