Skip to content

Commit 427cf1d

Browse files
committed
fix: update onProxyReq function signature in proxyService.ts
1 parent 983b5ab commit 427cf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webview/proxyService/proxyService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function startProxyServer() {
1111
const proxy = createProxyMiddleware({
1212
target: 'https://quote.eastmoney.com',
1313
changeOrigin: true,
14-
onProxyReq: (proxyReq: { setHeader: (arg0: string, arg1: string) => void; }, req: any) => {
14+
onProxyReq: (proxyReq: { setHeader: (arg0: string, arg1: string) => void; }) => {
1515
// 设置 User-Agent 和 Cookie
1616
proxyReq.setHeader('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3');
1717
// 设置 fullscreengg cookie解决页面频繁弹出广告

0 commit comments

Comments
 (0)