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.
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
© 2024 OneMinuteCode. All rights reserved.