From 53da938173dd97591e5b76d35b19733fe7622b5a Mon Sep 17 00:00:00 2001 From: Whitewater Date: Tue, 15 Apr 2025 19:30:09 +0900 Subject: [PATCH] fix: add Readwise URL to buildSafeHeaders to resolve CORS issues (#3497) --- apps/desktop/src/main/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/desktop/src/main/src/index.ts b/apps/desktop/src/main/src/index.ts index 24764e6d7..df9f70a00 100644 --- a/apps/desktop/src/main/src/index.ts +++ b/apps/desktop/src/main/src/index.ts @@ -41,6 +41,9 @@ const buildSafeHeaders = createBuildSafeHeaders(env.VITE_WEB_URL, [ env.VITE_OPENPANEL_API_URL || "", IMAGE_PROXY_URL, env.VITE_API_URL, + // Fix unexpected CORS error when modify the origin header to request domain in the preflight request + // Learn more https://github.com/RSSNext/Folo/issues/3312 + "https://readwise.io", ]) function bootstrap() {