title: How to parse a website using axios on heroku with cookies enabled?
body: <p>I have such a problem...</p>
  <p>I need to parse a certain page of the site.For this I used <code>axios</code> or <code>needle</code>.</p>
  <p>The problem is that when I run the project locally and want to get the data, everything works fine.</p>
  <p>But when I run the project on heroku and call the method to get the html page from the site, the site returns me the page &quot;Please enable cookies&quot;.</p>
  <p>I tried adding various additional parameters to the header but it doesn't help me</p>
  <p>Example of a function:</p>
  <pre><code>let response = await axios.get(url);
  
  let data = response.data;
  
  var $ = cheerio.load(data);
  </code></pre>
  <p>OR</p>
  <pre><code>needle.get(URL, function (err, res) {
   if (err) console.log(&quot;ERR: &quot;, err);
   let body = res.body;
   var $ = cheerio.load(body);
  });
  </code></pre>
  <p>What do I need to do to get a site page?</p>