remove unneeded header in all requests
All checks were successful
deploy / deploy (push) Successful in 49s
All checks were successful
deploy / deploy (push) Successful in 49s
This commit is contained in:
parent
375820c945
commit
1becf92a26
@ -1,5 +1,4 @@
|
|||||||
import { SsrDataFormatError } from "../others/errors";
|
import { SsrDataFormatError } from "../others/errors";
|
||||||
import ssrConfig from "../ssr-config";
|
|
||||||
import { MINUTE } from "../utils/date";
|
import { MINUTE } from "../utils/date";
|
||||||
import createNetworkCache from "./cache";
|
import createNetworkCache from "./cache";
|
||||||
import {
|
import {
|
||||||
@ -80,9 +79,6 @@ export async function fetchUrl(url, options = {}, cors = true) {
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
...options,
|
...options,
|
||||||
headers: {
|
|
||||||
"x-requested-with": ssrConfig.name,
|
|
||||||
},
|
|
||||||
...(cors ? { mode: "cors" } : null),
|
...(cors ? { mode: "cors" } : null),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user