Is it possible to provide custom headers to the safari view controller.
I would like to pass an API key or authentication token with my request, and I cannot place it in the query string.
Cookies. In iOS9, cookies between the Safari system browser and the SFSafariViewController are only shared if they are persistent. Session cookies are not shared and can result in different authentication sessions between the system browser and the Safari view controller.
What is SFSafariViewController? SFSafariViewController is an object that provides a visible standard interface for browsing the web. The view controller includes Safari features such as Reader, AutoFill, Fraudulent Website Detection, and content blocking.
Opening Content in Safari View ControllerRun the app and tap the bottom button, "Open with safari view controller", to see the content now being displayed inside a SFSafariViewController instance. We've now let the user stay inside of our app and they have all the advantages of Safari.
Unfortunately no, it is (still) not possible with iOS <=12.
Someone requested this feature: http://www.openradar.me/33483701
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With