iwan-uschka commented on issue #77: URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/77#issuecomment-732813005
@StasKalishenko No, unfortunately. But if you are the owner of the corresponding API you could think about a workaround like using access tokens (as a substitute for cookies) as query param in source URLs. For instance ``` <img src="https://domain.tld/path/to/binary?accessToken=🔑"> ``` Where to get the accessToken from? 1. Make a regular API request using [https://github.com/oracle/cordova-plugin-wkwebview-file-xhr](cordova-plugin-wkwebview-file-xhr) before you want to load the asset. Login call for instance. 2. Extract cookie by using [cordova-cookie-emperor](https://github.com/RTK/cordova-cookie-emperor). 3. Add the value of the cookie to the binary source URL as `accessToken` or whatever you wanna call this param. Hope this helps. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
