A workaround for this is to create an endpoint that fetches the API and returns the body
Here is an example i used for my sveltekit site:
export async function get({ params }): Promise<any> { const r = await fetch(`https://api.mojang.com/users/profiles/minecraft/${params.user}`); return { body: await r.body }}
A workaround for this is to create an endpoint that fetches the API and returns the body
Here is an example i used for my sveltekit site: