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

您好,有办法拦截到wkwebview里面的资源请求并正常发送带body的post请求吗 #89

Open
lwsitachi opened this issue Nov 13, 2020 · 1 comment

Comments

@lwsitachi
Copy link

您好,我们有个项目需求是在wkwebview的静态资源请求头带上referer信息,看了下要拦截wkwebview的资源请求必须调用私有类监听http跟https协议,并注册NSURLProtocol的响应类,但是在canInitWithRequest方法中,如果是post请求,如您所说,body已经被系统过滤了,最后的请求就失败了,请问有什么其他方法解决吗?

@xiubojin
Copy link
Owner

controller里不是有个发送post请求的方法吗?你可以用这个试试。

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

2 participants