#2472·got

Request failed with status code 403 (Forbidden) with v16.0.0

Author: raduchiriacCreated Aug 31, 2026Updated Sep 1, 2026

I updated to 16.0.0 and my requests stopped working returning a 403. This code used to work with 15.1.0:

javascript
const cookieJar = new CookieJar(); // imported from tough-cookie
const client = got.extend({
  cookieJar, // This makes cookies persist
  headers: {
    ...options.headers,
  },
});

const response = await client.get(url, { responseType: "json" });