feat(F-099): completed feature

This commit is contained in:
chattie
2026-08-21 07:29:07 +02:00
parent 3f1d08382f
commit 5177a851aa
41 changed files with 922 additions and 131 deletions

View File

@@ -85,10 +85,9 @@ export function ServerLogViewer({ backendUrl = 'http://192.168.18.93:3000' }: Se
const connect = async () => {
try {
// Read cookie from document
const cookies = document.cookie;
const response = await fetch(`${backendUrl}/admin/logs/stream`, {
headers: { Cookie: cookies },
// Use the same-origin proxy so the httpOnly backoffice cookie is forwarded server-side.
const response = await fetch('/api/admin/logs/stream', {
credentials: 'include',
});
if (!response.ok || aborted) {