WKWebView ssl/certificate pinning ajax requests

Hello,


I am using WkWebView component for a hybrid application. This application makes ajax requests to the server, and I am wondering how to implement certificate pinning for ajax requests. Does the "didReceiveAuthenticationChallenge" delegate method work for ajax requests aswell?


Thank you for your help