How to Attach a Custom Header in InAppBrowser

Asked 2 years ago, Updated 2 years ago, 116 views

In the InAppBrowser, click
window.open('http://example.jp/', '_blank', 'location=yes');

in the http request header. x-sample:abcd
Is there any way to add custom headers such as ?
The cordova version is 6.2.
Thank you for your cooperation.

monaca onsen-ui angularjs

2022-09-30 21:19

1 Answers

The Cordova's InAppBrowser plug-in offered as a standard plug-in in Monaca does not seem to offer a way to add or modify the current request header.

Pull requests to add such features were submitted about a year ago but have not been merged.It may be possible for you to take this in and use it yourself, but in that case, Monaca will have to use a custom Cordova plug-in, so you will need to use a Gold or higher plan.

https://github.com/apache/cordova-plugin-inappbrowser/pull/115


2022-09-30 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.