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

看了又看, wails dev了一天,没搞懂runtime这个中间件,怎么实现全局监管url跳转和新启webview跳转。想做过滤拦截。甚至全局网络拦截。 #3336

Open
1 of 2 tasks
gowy222 opened this issue Mar 23, 2024 · 3 comments
Labels
Documentation Improvements or additions to documentation

Comments

@gowy222
Copy link

gowy222 commented Mar 23, 2024

Have you read the Documentation Contribution Guidelines?

Description

核心就是想实现 全部 不管什么触发的,即将跳转url 不管是本webview跳转 还是 另起一个webview跳转 都能被监管到,可以自由选择 取消该操作,允许该操作,甚至 当目标是新启动一个webview的时候 可以改变为跳转本(主)webview来跳转url

同时:
这个怎么在前端监管 接口怎么对接?
又怎么单纯在go这边监管?

考虑代码复杂性后期决定侧重用哪个语言写监管内部逻辑功能

--
更进一步:
怎么全局接管所有网络请求, 做过滤拦截? 防止http iframe 被运营商层直接 注入js脚本瞎请求。(以前CEF的经历)

Self-service

  • I'd be willing to address this documentation request myself.
@gowy222 gowy222 added the Documentation Improvements or additions to documentation label Mar 23, 2024
@gowy222 gowy222 changed the title 看了又看, wails dev了一天,没搞懂runtime这个中间件,怎么实现全局监管url跳转和新启webview跳转。想做过滤拦截。 看了又看, wails dev了一天,没搞懂runtime这个中间件,怎么实现全局监管url跳转和新启webview跳转。想做过滤拦截。甚至全局网络拦截。 Mar 23, 2024
@f1748x
Copy link

f1748x commented Mar 24, 2024

道友,请问一下wails3 前端代码修改好了,wails3 dev 没有生效是什么原因

@leaanthony
Copy link
Member

请按照此处的 Wails 3 反馈指南进行操作:https://v3alpha.wails.io/getting-started/feedback/

@fyonecon
Copy link

1️⃣接管URL跳转,在go层做一个127.0.0.1的辅助跳转层,原生wails语法没有这个功能;
2️⃣防止http的运营商js注入,做head、body、固定锚点的前后内容清除即可,这个办法类似清除清楚浏览器插件在页面上渲染锚点。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants