#273 fix renderer side user agent (#645)

This commit is contained in:
Neil 2023-06-02 07:40:30 +08:00 committed by GitHub
parent 76e86d64d1
commit 79bd897146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,7 @@ export async function get<T>(
console.log(`GET /v1/${urlPath}`);
const headers = await getHeaders(`GET/${urlPath}`);
delete headers["User-Agent"]; // this is in the browser, not allowed to modify UserAgent
const req = await axios.request({
method: "GET",