Skip to content

Commit

Permalink
Add browser headers to loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmantiqueira committed Sep 26, 2024
1 parent f1f70ee commit 87b5168
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sap/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,16 @@ export default function SAP(props: Props): App<Manifest, State> {
base: `${apiUrl}/${baseSiteId}/`,
headers: new Headers({
"Content-Type": "application/json",
Accept: "application/json",
Accept: "*/*",
"accept-language": "en-US,en;q=0.9",
"cookie": "",
priority: "u=0, i",
"sec-ch-ua":
'"Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "macOS",
"User-Agent":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
}),
});

Expand Down

0 comments on commit 87b5168

Please sign in to comment.