1
Fork 0

Add a user agent to the Intercooler request.

This commit is contained in:
Bauke 2023-07-15 16:00:17 +02:00
parent 44d33d41ae
commit 99180035e3
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 3 additions and 2 deletions

View File

@ -22,10 +22,11 @@ export async function makeIntercoolerRequest(
const ic: RequestInit = {
headers: {
// Change the user agent and add an extra header so it's clear this isn't
// a request actually sent by Intercooler but by Tildes ReExtended.
"User-Agent": `Tildes ReExtended (${$browser}, version ${$version})`,
"X-CSRF-Token": csrfToken,
"X-IC-Request": "true",
// Include this header so it's clear this isn't a request actually sent by
// Intercooler but by Tildes ReExtended.
"X-TRX-Request": "true",
},
referrer: "https://tildes.net",