Instantly share code, notes, and snippets.
Hey this is not working, when the message is posted the webView stops loading the page, I have crossed checked everything but still this doesn't work.
The injection happens after page load. Maybe try programmatically changing the webview url. That worked for me.
Good trick! Thank you for sharing it.
Nice trick, but we can't read HttpsOnly cookies :(
Same is security if use postMessage...
where did you pass the cookies to the URL ?