4

How can I send a header when opening a url in the InAppBrowser? Or is it possible to set-cookie value in the InAppBrowser from the parent browser?

Which would you recommend - InAppBrowser or the childBrowser plugin ?

Cory Kendall
  • 7,195
  • 8
  • 37
  • 64

2 Answers2

1

InAppbrowser is just like opening a window using window.open. Once, called its a different window. So anything you cannot do in a window.open cannot be done in the InAppBrowser. InAppBroswer is recommended as it comes out of the box with PhoneGap.

Nishanth Nair
  • 2,975
  • 2
  • 19
  • 22
0

While I've not been able to affect the InAppBrowser headers or cookies directly, I was able to work around the missing Tomcat JSESSIONID cookie by injecting

;JSESSIONID=sessionid.jvmroute?

into the url. Beware that this work around exposes the session id that would otherwise be protected by SSL/TLS.

Stevko
  • 4,345
  • 6
  • 39
  • 66