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): remove cors headers hack (#5581)
Peng Xiao5aea84af8fbb
diff --git a/packages/frontend/electron/src/main/protocol.ts b/packages/frontend/electron/src/main/protocol.tsindex e874ff6cab..2af632983c 100644--- a/packages/frontend/electron/src/main/protocol.ts+++ b/packages/frontend/electron/src/main/protocol.ts@@ -79,16 +79,6 @@ export function registerProtocol() {(responseDetails, callback) => {const { responseHeaders } = responseDetails;if (responseHeaders) {- delete responseHeaders['access-control-allow-origin'];- delete responseHeaders['access-control-allow-methods'];- responseHeaders['Access-Control-Allow-Origin'] = ['*'];- responseHeaders['Access-Control-Allow-Methods'] = [- 'GET',- 'POST',- 'PUT',- 'DELETE',- 'OPTIONS',- ];// replace SameSite=Lax with SameSite=Noneconst originalCookie =responseHeaders['set-cookie'] || responseHeaders['Set-Cookie'];