fix(core): Some more browser-id related fixes (no-changelog) (#9102)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-04-10 10:37:23 +02:00
committed by GitHub
parent 3e231dbfe6
commit a7108d14f9
3 changed files with 21 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ export function createPage({
? loadPreviousSession
: 'notSupported';
return `<doctype html>
return `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
@@ -60,7 +60,8 @@ export function createPage({
if (authentication === 'n8nUserAuth') {
try {
const response = await fetch('/rest/login', {
method: 'GET'
method: 'GET',
headers: { 'browser-id': localStorage.getItem('n8n-browserId') }
});
if (response.status !== 200) {