fix(electron): set referer and origin headers for electron (#6289)

This commit is contained in:
pengx17 2024-03-25 01:23:18 +00:00
parent 2b42a75e5a
commit 64c011c72f
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -116,6 +116,10 @@ export function registerProtocol() {
.join('; ');
details.requestHeaders['cookie'] = cookieString;
}
// add the referer and origin headers
details.requestHeaders['referer'] ??= CLOUD_BASE_URL;
details.requestHeaders['origin'] ??= CLOUD_BASE_URL;
}
callback({
cancel: false,