thorsten-wolf-neptune commented on issue #877:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/877#issuecomment-979834619


   Hi Demym,
   
   we could solve the problem on our side which might help you as well.
   Currently there are two working solutions as far as i know:
   
   You can use the WebView Proxy from @NiklasMerz here:
   
[GEDYSIntraWare/cordova-plugin-webview-proxy](https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy)
   
   When doing this you will need to use a custom scheme and custom hostname and 
need to convert all urls into "intrenal proxy URLs" (Example 
app://myApp/proxy/actualHttpURLURIEncoded/... ) with the function provided by 
the plugin:
   window.WebviewProxy.convertProxyUrl(url)
   By doing this the network traffic is routed through native Objective C Code 
which performs the calls. That native code takes care of the Cookie Syncing.
   There has been an adjustment made which added this cookie sync from 
InAppBrowser Back to the main app: 
​https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/pull/18#issue-952041636
   
   Big shoutout and thanks again to @NiklasMerz who solved this problem :-)
   
   
   Another solution is to use  plugin 
https://github.com/CASTANA-Solutions/cordova-plugin-ios-xhr#readme
   That is following the same principle (routing the calls through native 
Objective C Code) and also has a fix which solves the the cookie Syncing. The 
only difference is that this overrides the $.ajax call. So you don't have to 
first convert the URL you want to call into an "proxy URL" but us your existing 
code without adjustments. Also you don't need to use a custom scheme and custom 
hostname for this.
   
https://github.com/CASTANA-Solutions/cordova-plugin-ios-xhr/commit/ed94fee0bd0a80cf413b610475ae2751be8664b8
   
   I hope this helps you and anyone else which has to deal with these anyoing 
issues :-)
   
   cheers
   Thorsten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to