alibaba / alibaba/lightproxy

http代理不成功,但https可以

Open
#246 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.2k
Forks
274
PR merge metrics
No merged PRs in 30d

Description

背景
- 使用rax.js
- 我想要h5.isairdrop.top指向127.0.0.1:3801
- 我的配置
```
# /socksjs-node/ 是 HMR 功能使用的,要把下面的 ws/xhr 做转发
^h5.isairdrop.top/sockjs-node/*** http://127.0.0.1:3801/sockjs-node/$1
^h5.isairdrop.top/*** http://127.0.0.1:3801/$1
```

目前表现
- 使用http访问没有生效
- 使用https访问,有生效,但是wss://h5.isairdrop.top/sockjs-node并不可用,因为是wss而不是ws

需求
- 如何让http也能生效
- 如何兼容wss的情况

临时解决办办法
- 给浏览器设置代理地址为lightproxy的代理地址,能实现,但是很麻烦

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported configuration for h5.isairdrop.top, comparing HTTP and HTTPS requests and the ws/wss SockJS paths. Done means HTTP forwarding works and the WebSocket endpoint is compatible with the reported wss case; no source file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.