title: How to access json file via chrome
body: <p>I have a local json file in my web directory and want to access it.
  I currently use $.getJSON() from jquery and it works fine with all browsers but chrome.</p>
  
  <p>How can I access this file via chrome?</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;script&gt;
          $(document).ready(function () {
              $.getJSON('JsonData.json', function (data) {
                  //using data for stuff..
              });
          })
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Edit: totaly forgot to paste the chrome console error here:</p>
  
  <blockquote>
    <p>Access to XMLHttpRequest at
    'file:///C:/Users/Sirzento/Desktop/website/JsonData.json' from origin
    'null' has been blocked by CORS policy: Cross origin requests are only
    supported for protocol schemes: http, data, chrome, chrome-extension,
    https.</p>
  </blockquote>