I have an app extension and would like to add additional headers to certain requests and it seems like overriding the "additionalRequestHeaders" function would be the way to do that, except it never seems to get called.
The online docs have no details about this function, but inside Xcode it says:
/// This is called when Safari is about to load a page that the extension has stated it wants to add additional headers for.
My extension is set to "All" for the Safari Website Access key in my extensions plist. I can see other things happening such as my Javascript being injected and messaging seems to work, so I'm confident my extensions is working, but I am not sure what I need to do to get this function to be called.
Thanks in advance.