Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add browser headers to loaders #884

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion sap/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ 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":
"JSESSIONID=7386EA2FC0F9EF7581F736851090A9D.api-78ccdc6899-v8bfk; ROUTE=.api-85c46fdbcb-xtvc2; _abck=C38C0F52396B7A403E5A469B43D38CBE~-1~YAAQlpSuyNFYkQ2SAQAAnlMLEQwjPSJBajHurN1YzGmJLWIq/mv/ar/fxAJgi2Rd+fqU+DQqw6+c6ajfGfUTIYVWO9LSYIW3triwKgeWwzuLCuVxV9+1EmYHFAYUcJkd7Kun3hkadjekIVLGP5I9uWivpZ104mx7Rp+AjM1RoWoQ9y8TFUJsVrJtgR6wDCvDIdZa36KPwOLWH2gqIpqXia4kyg4szVKFwCAllMJ0CI3/HJzqirhBk2taxtit9fHFCVEPtpTiXPkLHFMEngquQF+N4ELGXAukJ2Jh32Fj3bp1LtNHvAojTFUGMJc5wqnsRHksWRkMCTlZ6vEIvV3K6C5tqzGWyZk/N2lkGEBNmJNONLboSCPc/Hqvvi5UFXvaWLUc5pmyjDKSZZA+D3Q=~-1~-1~-1; _dd_s=logs=1&id=581758a9-387a-47e2-8d01-0fabddb1b64b&created=1727111219844&expire=9727112193338",
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
Loading