title: Cookiebot - refusing cookies prevented HttpClient from running the subscribe method callback
body: <p>Our client is using cookiebot on his sites and we faced and issue that is happening when user accepts only &quot;Necessary&quot; cookies. This problem occurs only when &quot;Necessary&quot; option is selected, and is not happening if all cookies are accepted.</p>
  <p>We have noticed that after &quot;Necessary&quot; cookies are accepted, subscribe on Angular HttpClient get, post and other methods is never executed. Problem is solved if page is reloaded.</p>
  <p>Here is code example:</p>
  <pre><code>this.http.get&lt;string[]&gt;('some/api/users', httpOptions)
  .subscribe(res =&gt; {
    // NEVER GETS INSIDE!
    this.users = res;
  });
  </code></pre>
  <p>I have created simple PoC application that is demonstrating this behavior and can be accessed here:
  <a href="https://cookiebot-poc.herokuapp.com/mobapp/" rel="nofollow noreferrer">https://cookiebot-poc.herokuapp.com/mobapp/</a></p>
  <p>Working scenario:</p>
  <ol>
  <li>Clean cookies (or open incognito)</li>
  <li>Open <a href="https://cookiebot-poc.herokuapp.com/mobapp/" rel="nofollow noreferrer">https://cookiebot-poc.herokuapp.com/mobapp/</a></li>
  <li>Accept &quot;all&quot; cookies</li>
  <li>Click &quot;Do Get&quot; or &quot;Do Post&quot; button</li>
  <li>Request is send, and list with users are displayed on screen</li>
  </ol>
  <p>Issue reproduction scenario:</p>
  <ol>
  <li>Clean cookies (or open incognito)</li>
  <li>Open <a href="https://cookiebot-poc.herokuapp.com/mobapp/" rel="nofollow noreferrer">https://cookiebot-poc.herokuapp.com/mobapp/</a></li>
  <li>Accept &quot;Necessary&quot; cookies only</li>
  <li>Click &quot;Do Get&quot; or &quot;Do Post&quot; button</li>
  <li>Nothing happens</li>
  </ol>
  <p>Thank you.</p>