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

[Bug]: 反向代理不能登录 #1152

Open
2 tasks done
ft4710403 opened this issue Aug 19, 2024 · 1 comment
Open
2 tasks done

[Bug]: 反向代理不能登录 #1152

ft4710403 opened this issue Aug 19, 2024 · 1 comment

Comments

@ft4710403
Copy link

这个bug是否已存在现有issue了?

  • 我确认没有已有issue,且已阅读常见问题

错误表现

反向代理出去以后,经过测试,不管http://iphttps://iphttps://域名 都不能登录。 gradio已经更新到了4.26.0

复现操作

docker 通过内网可以正常登录,但是如果用反向代理出去以后,经过测试,不管http://iphttps://iphttps://域名 都不能登录。 gradio已经更新到了4.26.0

错误日志

抓包看了一下:
POST https://xxxx:8269/login HTTP/1.1
Host: xxxx:8269
Connection: keep-alive
Content-Length: 249
sec-ch-ua: "Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryQuXvNbRk4FJvyTkP
DNT: 1
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
sec-ch-ua-platform: "Windows"
Accept: */*
Origin: https://xxxx:8269
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://xxxx:8269/
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: zh-CN,zh-TW;q=0.9,zh-HK;q=0.8,zh;q=0.7
Cookie: _CrPoSt=cHJvdG9jb2w9aHR0cHM6OyBwb3J0PTUwMDE7IHBhdGhuYW1lPS87; _SSID=XRxfG0UlfElnYpL618BgVw7-yQ3JtRzWCUp9iAmoISA; did=YM1tAlVLHhaCltEIzrNofI9QFzi6IcyOrsWO4kVtGrkzwsDHLjGITn2iXIJXxkmC3bx92XThabg7oOnaDBKx_w; order=id%20desc; serverType=nginx; file_recycle_status=true; pro_end=-1; ltd_end=-1; stay_login=1; gpadminpassport=cm9vdHw3NjEwMGZiMDI1NTg1MzM5YTY5Nzc0Y2M2MmM5YjU2NQ==; sites_path=/www/wwwroot; force=0; soft_remarks=%7B%22list%22%3A%5B%22%u66F4%u6362%u6388%u6743IP%22%2C%225%u5206%u949F%u6781%u901F%u54CD%u5E94%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%2230+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%2C%2220+%u4F01%u4E1A%u7248%u4E13%u4EAB%u529F%u80FD%22%2C%221000%u6761%u514D%u8D39%u77ED%u4FE1%uFF08%u5E74%u4ED8%uFF09%22%2C%222%u5F20SSL%u5546%u7528%u8BC1%u4E66%uFF08%u5E74%u4ED8%uFF09%22%2C%22%u4E13%u4EAB%u4F01%u4E1A%u670D%u52A1%u7FA4%uFF08%u5E74%u4ED8%uFF09%22%5D%2C%22pro_list%22%3A%5B%22%u66F4%u6362%u6388%u6743IP%22%2C%22%u5BA2%u670D%u4F18%u5148%u54CD%u5E94%22%2C%2215+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%22%u5546%u7528%u9632%u706B%u5899%u6388%u6743%22%5D%2C%22kfqq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%2C%22qun%22%3A%22%22%2C%22activity_list%22%3A%5B%22%3Cspan%20style%3D%5C%22color%3A%23D98704%3Bpadding-right%3A10px%5C%22%3E618%u7279%u60E0%u6D3B%u52A8%uFF0C6%u67089%u65E5-%206%u670818%u65E5%uFF0C%u6700%u9AD8%u51CF15000%u5143%3C/span%3E%3Ca%20style%3D%5C%22text-decoration%3Anone%3B%5C%22%20href%3D%5C%22https%3A//www.bt.cn/618%5C%22%20rel%3D%5C%22noreferrer%5C%22%20%20target%3D%5C%22_blank%5C%22%20class%3D%5C%22btlink%5C%22%3E%u70B9%u51FB%u7ACB%u5373%u67E5%u770B%3E%3E%3C/a%3E%22%5D%2C%22kf_list%22%3A%5B%7B%22qq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%7D%2C%7B%22qq%22%3A%222927440070%22%2C%22kf%22%3A%22http%3A//wpa.qq.com/msgrd%3Fv%3D3%26uin%3D2927440070%26site%3Dqq%26menu%3Dyes%26from%3Dmessage%26isappinstalled%3D0%22%7D%5D%2C%22wx_list%22%3A%5B%7B%22ps%22%3A%22%u5728%u7EBF%u5BA2%u670D%22%2C%22kf%22%3A%22https%3A//www.bt.cn/new/wechat_customer%22%7D%5D%2C%22vips_list%22%3A%7B%22%u591A%u5BF9%u4E00%u6280%u672F%u652F%u6301%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A0%2C%22vltd%22%3A1%7D%2C%22%u5168%u5E745%u6B21%u5B89%u5168%u6392%u67E5%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A0%2C%22vltd%22%3A1%7D%2C%225%u5206%u949F%u6025%u901F%u54CD%u5E94%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2230+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2220+%u4F01%u4E1A%u7248%u4E13%u4EAB%u529F%u80FD%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%221000%u6761%u514D%u8D39%u77ED%u4FE1%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%222%u5F20SSL%u5546%u7528%u8BC1%u4E66%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u4E13%u4EAB%u4F01%u4E1A%u670D%u52A1%u7FA4%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22WAF%u9632%u706B%u5899%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u66F4%u6362%u6388%u6743IP%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u5BA2%u670D%u4F18%u5148%u54CD%u5E94%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2215+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%7D%7D; load_search=undefined; load_page=1; p-1=1; id=lzNbsFYJLV6iiZ1nzlInDXu7D8benYgw-gxWTjr2XBwgeDUvKO--0yFGu6ybCWnJNLfGdmU80QeHAZphF5-nPo; bt_user_info=%7B%22status%22%3Atrue%2C%22msg%22%3A%22%u83B7%u53D6%u6210%u529F%21%22%2C%22data%22%3A%7B%22username%22%3A%22186****2815%22%7D%7D; distribution=centos7; LOBE_LOCALE=zh-CN; rank=list; Path=/data/python/www/select; litewait-v1-userauth-nonsec8818=LlBS50jLCkTcW5Wn8Tu9QM3qHK3%2FbJgA63%2B8qFsgx1Y%3D; memos.access-token=eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoiIiwiaXNzIjoibWVtb3MiLCJzdWIiOiIxIiwiYXVkIjpbInVzZXIuYWNjZXNzLXRva2VuIl0sImV4cCI6NDg3NzMwNjU1MywiaWF0IjoxNzIzNzA2NTUzfQ.agU1sSQSrRmy7rD3uyRGK5o7-wpgWKV2qEC4tdeqZng; LOBE_THEME_PRIMARY_COLOR=undefined; LOBE_THEME_NEUTRAL_COLOR=undefined; c3d6b257a6a672b2ae144d3f99fd1c3c_ssl=c7ce34bc-0c5d-4001-a001-dc1cf2f3f7b3.-xrSwf_8mQXZBf6dMlL-bbf2Lsc; _csrf=wk-mlGa8nbGH0QrC_VSlClfP; pnull=1; softType=-1; load_type=-1; io=k7NPB8T6v06moPnCAAFp; remember_web_59ba36addc2b2f9401580f014c7f58ea4e30989d=eyJpdiI6ImJUMFlpTndxWW5iU1ExbTJncWxtUVE9PSIsInZhbHVlIjoiVTd6dEdUQ2lVeWJWM0VSZHArTVExSU5RMVlpejBUcHFqSlBVSzl4M2Zsd1REQ3V0L3FUYkdCN29weHExa29mK3lmbTluaFdJd01lMDJmTE5hNVBQTXVpUXNMR3BnNzZjdS9tMXpRczBLSHh0M21VaGxsYlpqU0tFMUpmSWZEUXAvRFVCVko5R0wrU2lnakp6V0UxdlBnQUk1SGtYekkyWnRmYjk2eE9wanZnWm91TUIzdmdncm94a3hNaEU5TndIZHBwUGtRaUlQckpYMHpkbTVIb0R3SllHU1dlTU1OdmhlbTBkUTJNdW9kWT0iLCJtYWMiOiJmMDc4NTFiNzJjMTM3YWE1NTYyODhiODFmMzRlMDRmZmU3ZTE4NWNlMWE1NTk3YzBjOTY4MzlmMWUyYjg5MjYxIiwidGFnIjoiIn0%3D; XSRF-TOKEN=eyJpdiI6Ik1NSVBsbFBZaGFlRXhuaVIrR0ljYVE9PSIsInZhbHVlIjoiTWdFTU5RYWdRaGRuZjVkVTlRc0RUWFN5a1d0VmMyKzNRU1Bqd3h4bGVobUlFNHE2K0p3YTZHdVNDck5NOERaVjkwRUZ5R1I1LysrbzQyN0ZZN0lOQ1pLVWlNWE53QW5EbXRTeStkQjl1b0RBQW1YMVg5VDYzQ0lyUEl0Z0l1OTgiLCJtYWMiOiJmY2NhYWUwN2M2YzExYWQ3ZTEzNzllZTYwZGRlOTU0Yjk3YzZlZmNkYWI5Mjg1ZGUwNDc2ZTA1MTllMTMyN2E3IiwidGFnIjoiIn0%3D; heimdall_session=eyJpdiI6IjZoRkx4RE1OdlR5WUhXSXVRNU9MeHc9PSIsInZhbHVlIjoicWVqeG5uaGRoYmhvb1orZkNUTzRVd3V3RW04aWh4UmpveTQ1T2JONk0vMlpuMlpENTl5UEQzTmFvZVIxbkExbVBHTld6bC8vRG8relN0MGVScTMydVFudHRXUEVFZ1hiTDR1bjRLTm1LaWswUkJrQzNOL3R2bGNJcWFNRU50L0giLCJtYWMiOiI2MDY0NDNiZWVkMDU2MGJjZGQ3YmE5NjEzMjUxYTVmNzFkMGJlZjhjNjM3YzY2NDFlNDc5ZWYyM2ViYTZlNzJmIiwidGFnIjoiIn0%3D

------WebKitFormBoundaryQuXvNbRk4FJvyTkP
Content-Disposition: form-data; name="username"

admin
------WebKitFormBoundaryQuXvNbRk4FJvyTkP
Content-Disposition: form-data; name="password"

admintest
------WebKitFormBoundaryQuXvNbRk4FJvyTkP--

运行环境

  • OS:
  • Browser: chrome127.0.6533.120
  • Gradio version:
  • Python version:

帮助解决

  • 我愿意协助解决!

补充说明

No response

@ft4710403 ft4710403 added the bug Something isn't working label Aug 19, 2024
@GaiZhenbiao
Copy link
Owner

请查阅项目Wiki中关于公网访问的部分

@Keldos-Li Keldos-Li removed the bug Something isn't working label Aug 19, 2024
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

3 participants