Skip to content

Commit

Permalink
Preloader: Rename header to x-purpose to avoid it being stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeiffer authored Dec 14, 2023
1 parent 098aafc commit 6751361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/drive/preloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6751361

Please sign in to comment.