feat(F-099): completed feature
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user