fix(workflow): fix 405/404/403 errors on workflow switcher by updating CORS, 5201 demo permissions and server restart

This commit is contained in:
WeiCHEN
2026-09-13 02:50:21 +00:00
committed by weichen
parent 408bef6b8a
commit 42e3ece2c6
3 changed files with 52 additions and 12 deletions
+3
View File
@@ -30,6 +30,9 @@ function getAuthHeaders(): HeadersInit {
// ignore
}
}
if (!headers['Authorization'] && !headers['X-User-ID']) {
headers['X-User-ID'] = '1';
}
return headers;
}