kramer65
kramer65

Reputation: 53843

How to set headers in Cordova InAppBrowser?

In an app I'm building using the ionic framework (based on Cordova) I'm using the Cordova InAppBrowser to visit a url, but I want to set custom headers for that request. I've read over the readme and some other sites, but I can't find anything.

Does anybody know how I can set headers in the Cordova InAppBrowser? All tips are welcome!

Upvotes: 8

Views: 4537

Answers (1)

kramer65
kramer65

Reputation: 53843

As far as I now know this could not be done. So I opted for an alternative solution in which I gave the params via the url. I could do this because I also controlled the url which I wanted to open. So it worked, but it wasn't ideal.

Anyway, maybe this can help other people.

Upvotes: 4

Related Questions