We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8212d06 commit 1554a93Copy full SHA for 1554a93
apps/main/src/index.ts
@@ -72,7 +72,9 @@ function bootstrap() {
72
userAgent = userAgent.replace(/\s?Electron\/[\d.]+/, "")
73
userAgent = userAgent.replace(/\s?Follow\/[\d.a-zA-Z-]+/, "")
74
}
75
- details.requestHeaders["Origin"] = "https://app.follow.is"
+ if (env.VITE_OPENPANEL_API_URL && details.url.startsWith(env.VITE_OPENPANEL_API_URL)) {
76
+ details.requestHeaders["Origin"] = "https://app.follow.is"
77
+ }
78
details.requestHeaders["User-Agent"] = userAgent
79
callback({ cancel: false, requestHeaders: details.requestHeaders })
80
})
0 commit comments