Details
const response = await ofetch.raw<unknown>(url, {
...options,
redirect: 'manual', // do not follow redirects
ignoreResponseError: true,
});
If redirect-following is ever required in the future, validate the Location header through the existing isUrlSsrfSafe() check before re-issuing the request.