nativescript-inappbrowser
nativescript-inappbrowser copied to clipboard
"headers" parameter for openAuth function has no effect.
The header is not modified. Code exemple:
// Function used to execute action when the provider button is clicked.
async function onNewConnectionClick() : Promise<void> {
const url = `${BASE_API_URL}/protected/oauth2/${$selectedProvider}/login?redirect_url=${APP_URL}`
const cookie = retrieveConnectionCookie()
if (cookie == null) {
navigateTo(PageList[PageIndex.LOGIN])
return
}
try {
if (await InAppBrowser.isAvailable()) {
InAppBrowser.openAuth(url, APP_URL, {
ephemeralWebSession: false,
showTitle: false,
enableUrlBarHiding: true,
enableDefaultShare: false,
headers: {
'Cookie': 'session_id=' + cookie.sessionId
}
...