Context: I work with an SKD which for usage tracking performs a GET request with some basic info. One of our customers is facing some problems and although the easy way is to provide a way to disable the call and deliver a new version the Sales team wants to provide a solution they can do on their side (App) without the need to update their current version.
So the NSMutableURLRequest is being handled by URLSession.shared, my first idea was to add a delegate to the session, however this although possible won't help blacklisting the URL and it seems like the session has several limitations.
Is there a way to blacklist a URL from general use on the app?
I checked the delegate URLSessionDelegate however it doesn't had the capability to intercept a call before sending it. I also thought that there may be a property for the plist file which work as the opposite of NSExceptionDomains, but didn't found one.