-
Notifications
You must be signed in to change notification settings - Fork 10
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
cloudflare workers的调试浏览器能正常访问,chrome浏览器里访问返回Error 1101 #4
Comments
oauth.secure.pixiv.net 這個API接口近期接入了 Cloudflare,導致 Cloudflare Workers 使用的 IP 需要提交驗證碼才能正常獲取API資料。 |
@jongcs 很高兴收到您的答复,现在有解决思路。需要确认一下,额外反向代理的API接口是oauth.secure.pixiv.net 吗? 除了cloudflare-workers外,我想把此代码部署到自己服务器上,能否给一些建议, 谢谢先送上.... |
經過測試,只有 oauth.secure.pixiv.net 需要額外代理,其他API端點沒有接入Cloudflare。 這個腳本是專為Cloudflare Workers設計,若要完全自行部屬,可以依照需求修改成 node.js 的 Express 應用程式。 |
@jongcs 好的,再次感谢。 |
I have the same problem, how to solve it? by the way i'm a JavaScript beginner, I'm confused about the reverse proxy |
You need to use a reverse proxy like nginx or caddy for oauth.secure.pixiv.net, bacause this endpoint is protected by Cloudflare. |
Can you give me the nginx configuration? |
Simply put this in your server block.
|
In the end I didn't use NGINX because I didn't have a VPS so I used Vercel (free) as a reverse proxy and it works really well, thanks. |
您好:pixiv-cat的作者
我在部署pixivcat-cloudflare-workers时候遇到一个问题。
描述:cloudflare workers的调试浏览器里可以正常访问图片,但是在chrome浏览器里访问时,返回Error 1101
图1:在cloudflare workers的调试浏览器访问
![图1](https://user-images.githubusercontent.com/59247295/108662147-9ed6d680-7508-11eb-88b3-abcf4e20ef05.png)
图2:在chrome浏览器里访问
![图2](https://user-images.githubusercontent.com/59247295/108662198-c7f76700-7508-11eb-9fc8-7a95f4a8f2b5.png)
chrome 调试的console 选项,返回 get https://Domain-Name//75034219.jpg 500
参考:大体搭建步骤参考一分钟教程:利用cloudflare worker搭建在线代理--jsproxy 教程,把代码替换成本仓库的JS代码
先行感谢!
The text was updated successfully, but these errors were encountered: