From 6751361af90c15e2a112639d58e490746528f462 Mon Sep 17 00:00:00 2001 From: Mattias Pfeiffer Date: Thu, 14 Dec 2023 11:42:21 +0100 Subject: [PATCH] Preloader: Rename header to `x-purpose` to avoid it being stripped --- src/core/drive/preloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/drive/preloader.js b/src/core/drive/preloader.js index b93d9b7ee..49fdf144d 100644 --- a/src/core/drive/preloader.js +++ b/src/core/drive/preloader.js @@ -37,7 +37,7 @@ export class Preloader { } try { - const response = await fetch(location.toString(), { headers: { "Sec-Purpose": "prefetch", Accept: "text/html" } }) + const response = await fetch(location.toString(), { headers: { "x-purpose": "preview", Accept: "text/html" } }) const responseText = await response.text() const snapshot = PageSnapshot.fromHTMLString(responseText)