GithubHelp home page GithubHelp logo

li6185377 / imywebloader Goto Github PK

View Code? Open in Web Editor NEW
234.0 234.0 32.0 67 KB

支持对 UIWebView/WKWebView 的资源, 进行 预加载、缓存、拦截 等操作 ... Orz

License: MIT License

Ruby 1.22% Objective-C 90.92% JavaScript 7.86%

imywebloader's People

Contributors

li6185377 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

imywebloader's Issues

post 请求的requestBody 为空

我在您的 demo 中直接填入我要接入的 url,发送 post请求时,requestBody 为空。我哪里理解错了吗?

是这样使用么

看demo 执行imy_installHookAjax就可以?还需要配置什么么?

CSRF

pod 添加之后,什么都不做,
WKWebView load 一个页面,提示 csrf expired
但是 load 百度 首页 就不会出问题,这个有什么解决办法吗?

在iOS11.0.3,7plus上,hook ajax会crash

=================================================================
Main Thread Checker: UI API called on a background thread: -[WKWebView evaluateJavaScript:completionHandler:]
PID: 86618, TID: 11993414, Thread name: (none), Queue name: NSOperationQueue 0x1c0221920 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4 IMYWebLoader 0x00000001021aba04 -[_IMYWKHookAjaxHandler requestCallback:httpCode:headers:data:] + 820
5 IMYWebLoader 0x00000001021ab5dc __41-[_IMYWKHookAjaxHandler requestWithBody:]_block_invoke + 136
6 IMYWebLoader 0x00000001021a027c __88-[IMYWebAjaxHandlerDefaultImpl startWithMethod:url:baseURL:headers:body:completedBlock:]_block_invoke + 528
7 CFNetwork 0x00000001820b2d50 + 32
8 CFNetwork 0x00000001820ca0ec + 152
9 Foundation 0x00000001824f2310 + 16
10 Foundation 0x00000001824329e4 + 72
11 Foundation 0x0000000182422620 + 848
12 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
13 libdispatch.dylib 0x0000000102269b74 _dispatch_block_invoke_direct + 268
14 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
15 libdispatch.dylib 0x0000000102269b74 _dispatch_block_invoke_direct + 268
16 libdispatch.dylib 0x0000000102269a34 dispatch_block_perform + 104
17 Foundation 0x00000001824f3fe8 + 376
18 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000010226a800 _dispatch_continuation_pop + 592
20 libdispatch.dylib 0x000000010226909c _dispatch_async_redirect_invoke + 628
21 libdispatch.dylib 0x000000010226eb54 _dispatch_root_queue_drain + 616
22 libdispatch.dylib 0x000000010226e880 _dispatch_worker_thread3 + 136
23 libsystem_pthread.dylib 0x0000000181753130 _pthread_wqthread + 1268
24 libsystem_pthread.dylib 0x0000000181752c30 start_wqthread + 4
2017-12-06 15:22:21.031849+0800 IMYWebLoader[86618:11993414] [reports] Main Thread Checker: UI API called on a background thread: -[WKWebView evaluateJavaScript:completionHandler:]
PID: 86618, TID: 11993414, Thread name: (none), Queue name: NSOperationQueue 0x1c0221920 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4 IMYWebLoader 0x00000001021aba04 -[_IMYWKHookAjaxHandler requestCallback:httpCode:headers:data:] + 820
5 IMYWebLoader 0x00000001021ab5dc __41-[_IMYWKHookAjaxHandler requestWithBody:]_block_invoke + 136
6 IMYWebLoader 0x00000001021a027c __88-[IMYWebAjaxHandlerDefaultImpl startWithMethod:url:baseURL:headers:body:completedBlock:]_block_invoke + 528
7 CFNetwork 0x00000001820b2d50 + 32
8 CFNetwork 0x00000001820ca0ec + 152
9 Foundation 0x00000001824f2310 + 16
10 Foundation 0x00000001824329e4 + 72
11 Foundation 0x0000000182422620 + 848
12 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
13 libdispatch.dylib 0x0000000102269b74 _dispatch_block_invoke_direct + 268
14 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
15 libdispatch.dylib 0x0000000102269b74 _dispatch_block_invoke_direct + 268
16 libdispatch.dylib 0x0000000102269a34 dispatch_block_perform + 104
17 Foundation 0x00000001824f3fe8 + 376
18 libdispatch.dylib 0x000000010225d45c _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000010226a800 _dispatch_continuation_pop + 592
20 libdispatch.dylib 0x000000010226909c _dispatch_async_redirect_invoke + 628
21 libdispatch.dylib 0x000000010226eb54 _dispatch_root_queue_drain + 616
22 libdispatch.dylib 0x000000010226e880 _dispatch_worker_thread3 + 136
23 libsystem_pthread.dylib 0x0000000181753130 _pthread_wqthread + 1268
24 libsystem_pthread.dylib 0x0000000181752c30 start_wqthread + 4
(lldb)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.