mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-30 05:34:21 +03:00
fix(electron): set referer and origin headers for electron (#6289)
This commit is contained in:
parent
2b42a75e5a
commit
64c011c72f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user