Skip to content

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

@lwsitachi

Description

@lwsitachi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions