tiann / KernelSU

A Kernel based root solution for Android
https://kernelsu.org
GNU General Public License v3.0
10.11k stars 1.66k forks source link

【功能增强(或者安全性减弱?)】webui界面无法调用http请求 #1521

Closed powerAn2020 closed 7 months ago

powerAn2020 commented 7 months ago

Please check before submitting an issue

Describe the bug

微信截图_20240324223832

To Reproduce

模块启用了zerotierOne的服务,想通过webui界面调用zerotier http api 动态修改接口信息,但报错,根据我搜索到的信息显示,高版本的webview禁用了http协议

Expected behavior

可以调用http

Screenshots

No response

Logs

No response

Device info

Additional context

No response

tiann commented 7 months ago

https://github.com/tiann/KernelSU/blob/main/manager/app/src/main/res/xml/network_security_config.xml

localhost 的 http 是允许的,你的问题在于,你在 https 的页面进行 http 的请求。

powerAn2020 commented 7 months ago

https://github.com/tiann/KernelSU/blob/main/manager/app/src/main/res/xml/network_security_config.xml

localhost 的 http 是允许的,你的问题在于,你在 https 的页面进行 http 的请求。

修改成127.0.0.1是被允许的,localhost还是不行。反正都一样倒是。