title: New CORS policy for Instagram public API?
body: <p>I am using these endpoints with JavaScript Ajax to get Instagram user information and posts:</p>
  <p><a href="https://www.instagram.com/%5Busername%5D/?__a=1" rel="noreferrer">https://www.instagram.com/[username]/?__a=1</a></p>
  <p><a href="https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&amp;variables=%7Bid:%5Buser_id%5D,first:50,after:%27%27%7D" rel="noreferrer">https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&amp;variables={id:[user_id],first:50,after:''}</a></p>
  <p>There was not a CORS policy error before but now i'm getting that error (not every time when i refresh the page, but almost 95% times):</p>
  <p><strong>Access to XMLHttpRequest at 'https://www.instagram.com/hannahstocking/?__a=1' from origin 'https://sitename.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.</strong></p>
  <p>Has Instagram started to block these endpoints or added a new rate limit? How can I fix it?</p>