-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Form表单问题 #15
Comments
NSURLProtocol 拦截处理wkwebview的请求,导致网页中的post请求httpbody,httpbodystream 是空的,才找到你的这个hook方式,但是发现有bug,能处理ajax方式的post请求,但是不能处理form表单的form.submit这种提交,求解决 |
form表单form.submit走的不是ajax,ajax hook拦截不到。 |
@karosLi 2、增加黑名单机制,针对这类链接不要使用离线包机制 |
类似于这样,有一个统一的方法可以开启和关闭离线包功能。是否关闭的逻辑,你可以通过服务器端后台下发一些H5链接的黑名单列表,然后再下面几个入口做判断是否需要关闭离线包功能。
|
@karosLi decidePolicyForNavigationAction里做开关,不会发生两个webview同时加载,一个开启缓存,一个不需要缓存,发生需要缓存的资源,请求没有发到本地吗? |
一般的话还是一个webview在加载,你要是有两个webview同时加载加载场景,那就不行。 |
大概明白了。谢谢解答 |
新的版本 KKJSBridge 1.1.1 可以通过 form.submit() 提交表单了 |
页面中含有
标签这种情况,通过form.submit()或者form.onsubmit()提交表单,不会hook拦截The text was updated successfully, but these errors were encountered: