cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

feat(android,ios): Support for passing in request headers

Open sanketmehta7 opened this issue 10 years ago • 16 comments
trafficstars

Support for passing request headers only for android. User need to pass comma separated headers, with their key, values separated by : Eg: cordova.InAppBrowser.open("http://apache.org", "_self", 'location=no','custom-h1:asd,h1:xyz');

sanketmehta7 avatar Sep 20 '15 08:09 sanketmehta7

This would be really useful, mostly on WP8, (if it will be possible) where file-transfer fails.

TakkuzOld avatar Jan 26 '16 14:01 TakkuzOld

Very useful when you have to send a token or Authorization header to access to a resource.

olivercs avatar Aug 08 '16 23:08 olivercs

@sanketmehta7 can you please fix the conflicts so this can be merged?

kodeine avatar Nov 10 '16 23:11 kodeine

Would there be any chance for ios as well?

ghost avatar Dec 13 '16 17:12 ghost

Any news on this ? I can't build on Xcode (missing .h declaration for navigateToNew method).

mrtnjln avatar Jan 17 '17 15:01 mrtnjln

hellow.julymartin.can.you.herme.or.not

ramses80 avatar Jan 20 '17 15:01 ramses80

This is an API change and should be discussed on the list, or at the very least have a JIRA issue attached to it. Also, the conflicts are definitely going to prevent this from getting merged as-is.

infil00p avatar Sep 21 '17 16:09 infil00p

Does this work with ios

rdksgit avatar Jun 13 '18 10:06 rdksgit

@rdksgit Nope, using this forked version causes the iOS build code 65. So basically unless the developer can fix the reason why it causes the build to fail, this plugin is not production ready.

Note: you won't see the build error on Android build, just iOS.

@sanketmehta7 Thanks for this plugin very much. Is there any chance that you will be able to sort the build (causing issue Error 65) any time soon please?

Feedback would be greatly appreciated, thank you.

daveshirman avatar Jun 17 '18 02:06 daveshirman

Hey @sanketmehta7 , there seems to be a merge conflict now. Could you maybe fix this? Thanks.

janpio avatar Sep 16 '18 19:09 janpio

Any news about this PR?

Aiuspaktyn avatar Jan 18 '21 11:01 Aiuspaktyn

will try to create new PR from latest code

sanketmehta7 avatar Jan 27 '21 11:01 sanketmehta7

In the meantime, if anyone needs to access an HTTP auth protected site/resource, you can include the creds in the URL, e.g.:

https://username:[email protected]/...

It's got me over this issue for now, so it could help someone else as well.

kasp1 avatar Mar 11 '21 12:03 kasp1

will try to create new PR from latest code

Did you have any luck with this?

iantearle avatar Jul 11 '22 14:07 iantearle

Any update?

sawaca96 avatar May 16 '23 05:05 sawaca96

Hard conflicts, which is not a big surprise after so long. As the feature itself still looks interesting, this should probably be resurrected as a new PR.

@janpio What about #1024 ? I'm not changing API but using the options with json and base64 encoding for headers and cookies as well. Let me know. Cheers!

lubbo avatar Sep 26 '23 17:09 lubbo