Hi,
in my app i do oath authentication and can nicely read the data from the webpage.
now for some actions i do open the page in webview to allow some interaction.
but sice 5.0 the webview has lost the ability in my app to reauthenticate.
now as i do have the tokens and all i would like to set those in the header of the webview.
but it seems webview does not have the properties. is there a workaround ?
thanks !
Kaktus has a footer in the WebView, maybe can you take some inspiration
It sounds like the question is about HTTP headers, not a page header.
correct 
want to avoid permanent login in webview
Not sure if it helps, but I found this:
Option 2. Use a local HTTP server
Running a local HTTP server with your content allows you to control the headers and manage the CORS headers appropriately.
In practice, running a local Web server doesn’t need to be complex or resource intensive. There are various Qt-based web server implementations such as QtHttpServer and QtWebApp.
Mark Washeim has also created a very nice Sailfish WebView example app that uses a small Python script to expose a local web server for the WebView to pull its content from.
1 Like
kaktus does the headers handling in c++ code
will check out Marks example, thanks !
2 Likes