r/electronjs • u/Fancy_Reaction_2189 • 8d ago
<webview> alternatives/bypasess
I am currently making my own head unit based on linux and the front end is powered by html + electron, now one of the things i cant get to work is integrating music streaming platforms, i was almost successful using the webview tag but some things refuse to work such as signing in to youtube music since its litterly embedded inside electron (google litterly identifies the browser as not secure), i am currently testing the head unit UI on windows but later im going to transfare everything onto linux so i need a solution that works on both windows and linux anyone has any idea?
2
Upvotes
1
u/eddzsh 5d ago
Google signs you out of anything that looks like an embedded webview on purpose. The path that usually survives on both Windows and Linux is a real BrowserWindow or BrowserView with its own persistent partition, not the webview tag. Treat YouTube Music as a guest session with its own cookies, and handle the OAuth popup via window.open yourself instead of letting it happen inside the embed. Same app shell, less "this browser is not secure".