fix(k3s): reject HTML responses and extend CAPTCHA expiration
这个提交包含在:
@@ -437,7 +437,7 @@ data:
|
||||
const response = await fetch(newRequest)
|
||||
|
||||
// 检查响应状态
|
||||
if (!response.ok) throw new Error('PWA-CDN: Non-2xx response detected')
|
||||
if (!response.ok || response.headers.get('content-type')?.includes('text/html')) throw new Error('PWA-CDN: Invalid response detected')
|
||||
|
||||
return response
|
||||
} catch (error) {
|
||||
@@ -458,4 +458,3 @@ data:
|
||||
if (config.debug) console.log('PWA-CDN: Service Worker activated')
|
||||
self.clients.claim().catch(console.error)
|
||||
})
|
||||
|
||||
|
||||
在新议题中引用
屏蔽一个用户