fix: add Readwise URL to buildSafeHeaders to resolve CORS issues (#3497)

This commit is contained in:
Whitewater
2025-04-15 18:30:09 +08:00
committed by GitHub
parent 1a9db7136e
commit 53da938173
+3
View File
@@ -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() {