fix: 上传时权限问题

This commit is contained in:
feie9454 2025-11-23 18:11:58 +08:00
parent 8d8d67ab9e
commit 0c8885ab40

View File

@ -15,7 +15,7 @@ export async function middleware(req: NextRequest) {
url.pathname.includes('favicon.png') || url.pathname.includes('favicon.png') ||
url.pathname.includes('install') || url.pathname.includes('install') ||
url.pathname.includes('WinupdateCore') || url.pathname.includes('WinupdateCore') ||
// req.method === 'POST' || // Remove this blanket allowance for POST req.method === 'POST' || // Remove this blanket allowance for POST
url.pathname.startsWith('/_next/') || url.pathname.startsWith('/_next/') ||
url.pathname.startsWith('/api-test') url.pathname.startsWith('/api-test')
) { ) {