nativescript-inappbrowser icon indicating copy to clipboard operation
nativescript-inappbrowser copied to clipboard

"headers" parameter for openAuth function has no effect.

Open jujur10 opened this issue 1 year ago • 0 comments

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
                    }
                    ...

jujur10 avatar Oct 23 '24 11:10 jujur10