update policy

This commit is contained in:
liangping 2024-01-07 14:43:15 +08:00
parent fb32ff8597
commit 1354abdb5d

View File

@ -47,7 +47,7 @@ const policies = [
'unsafe-url'
];
export async function get(url: string) {
return (await fetch(url, {referrerPolicy: policies})).json();
return (await fetch(url, {referrerPolicy: 'unsafe-url'})).json();
}
export async function post(url: string, data: any) {