kasketis / netfox

A lightweight, one line setup, iOS / OSX network debugging library! 🦊
MIT License
3.68k stars 374 forks source link

Is there any way to prevent netfox grabbing all request in my app ? #78

Closed hoangpx closed 6 years ago

hoangpx commented 7 years ago

I know netfox works base on NSURLProtocol. So the question is Is there any way to make a request without using NSURLProtocol ?

Janglinator commented 7 years ago
NFX.sharedInstance().ignoreURL("the_url")

You can use the url of the host (for example "https://www.github.com") to ignore all paths of it.

Is this what you're looking for?

Janglinator commented 6 years ago

Since we don't have a reply, closing this issue.

Disabling Netfox (using stop) will unregister it from NSUrlProtocol. However if Netfox is causing an issue, hence why we would want to disable it, then it sounds like we need to fix the problem rather than putting on a bandage :)