title: Facebook xhr login: Cross-Origin Request Blocked
body: <p>I have this problem, when I try to log in users on my website through facebook using XHR my request gets blocked, however if I copy the URL of the XHR request and paste it in the browser I get logged in.</p>
  
  <p>So here's a simple schematic:</p>
  
  <p><a href="https://i.stack.imgur.com/G2BPE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G2BPE.png" alt="enter image description here"></a></p>
  
  <p>Why is xhr getting blocked on the same url a browser can access?</p>