diff --git a/frontend/src/react/helpers/connection-template-fetcher.ts b/frontend/src/react/helpers/connection-template-fetcher.ts index eafdbeba1a61..21721ca8dcd8 100644 --- a/frontend/src/react/helpers/connection-template-fetcher.ts +++ b/frontend/src/react/helpers/connection-template-fetcher.ts @@ -78,7 +78,10 @@ export async function fetchConnectionTemplate( try { const response = await fetch(url, { method: 'GET', - headers: { Accept: 'text/vnd.turbo-stream.html' }, + headers: { + Accept: 'text/vnd.turbo-stream.html', + 'X-Authentication-Scheme': 'Session', + }, }); if (!response.ok) { diff --git a/frontend/src/stimulus/controllers/dynamic/documents/live-events.controller.ts b/frontend/src/stimulus/controllers/dynamic/documents/live-events.controller.ts index 8b728768ddad..25987fab7a42 100644 --- a/frontend/src/stimulus/controllers/dynamic/documents/live-events.controller.ts +++ b/frontend/src/stimulus/controllers/dynamic/documents/live-events.controller.ts @@ -117,7 +117,10 @@ export default class extends ApplicationController { private fetchTemplate(url:string) { void fetch(url, { method: 'GET', - headers: { Accept: 'text/vnd.turbo-stream.htm' }, + headers: { + Accept: 'text/vnd.turbo-stream.html', + 'X-Authentication-Scheme': 'Session', + }, }) .then((response:Response) => { if (response.ok) {