We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddedb41 commit 0212a9aCopy full SHA for 0212a9a
src/lib/api/fetchRSS.ts
@@ -130,7 +130,10 @@ export const fetchRSS = async (xmlUrl: string | string[]) => {
130
*/
131
export const fetchXml = async (url: string) => {
132
try {
133
- const response = await fetch(url)
+ const response = await fetch(url, {
134
+ headers: { Cookie: "", DNT: "1" }, // Empty cookie header and do-not-track
135
+ credentials: "omit", // Don't send or receive cookies
136
+ })
137
const xml = await response.text()
138
let returnObject: Record<string, unknown> = {}
139
parseString(xml, (err, result) => {
0 commit comments