Improve Google OAuth compatibility and session handling
Updated Electron window and session configuration to enhance Google OAuth sign-in compatibility, including user agent spoofing, session partitioning, and webview security settings. Added debugging for cookie changes and improved request headers for OAuth flows. Updated renderer code and index.html to use the new session partition and user agent. Added oauth-debug.md to document changes and troubleshooting steps.
This commit is contained in:
+3
-1
@@ -63,8 +63,10 @@
|
||||
<webview id="home-webview"
|
||||
src="home.html"
|
||||
preload="../preload.js"
|
||||
partition="persist:default"
|
||||
partition="persist:main"
|
||||
allowpopups
|
||||
webpreferences="allowRunningInsecureContent=false,javascript=true,webSecurity=true"
|
||||
useragent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Nebula/1.0.0"
|
||||
style="width:100%; height:100%; border:none;">
|
||||
</webview>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user