Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to provide custom headers to the Safari View Controller

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.

like image 771
sylvanaar Avatar asked Dec 02 '15 16:12

sylvanaar


People also ask

Does SFSafariViewController share cookies?

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?

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.

How do I view a controller in Safari?

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.


1 Answers

Unfortunately no, it is (still) not possible with iOS <=12.

Someone requested this feature: http://www.openradar.me/33483701

like image 101
Adriano Avatar answered Sep 21 '22 10:09

Adriano