From 1becf92a2664b66dd0aaa50d04fdbb5f325e4719 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 18 Oct 2023 03:17:59 +0100 Subject: [PATCH] remove unneeded header in all requests --- src/network/fetch.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/network/fetch.js b/src/network/fetch.js index 7fa18e8..70dacfc 100644 --- a/src/network/fetch.js +++ b/src/network/fetch.js @@ -1,5 +1,4 @@ import { SsrDataFormatError } from "../others/errors"; -import ssrConfig from "../ssr-config"; import { MINUTE } from "../utils/date"; import createNetworkCache from "./cache"; import { @@ -80,9 +79,6 @@ export async function fetchUrl(url, options = {}, cors = true) { try { const response = await fetch(url, { ...options, - headers: { - "x-requested-with": ssrConfig.name, - }, ...(cors ? { mode: "cors" } : null), });