There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(electron): set referer and origin headers for electron (#6289)
pengx1764c011c72f67
diff --git a/packages/frontend/electron/src/main/protocol.ts b/packages/frontend/electron/src/main/protocol.tsindex ec1d875ec1..448ab5d424 100644--- a/packages/frontend/electron/src/main/protocol.ts+++ b/packages/frontend/electron/src/main/protocol.ts@@ -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,