title: Issues with running my Apache Solr project:
body: <p>I'm trying to set up <code>Apache Solr</code> and run some experiments. I've set up the Solr search engine on my Ubuntu 18.04, indexed a few files, and it works perfectly given a specific query. The admin page is accessible on the default port on <code>localhost:8983/solr</code></p>
  
  <p>Now I was trying to setup a web-based client communicating with Solr. I found this simple project located at Google Code <strong><a href="https://code.google.com/archive/p/solr-search-html/" rel="nofollow noreferrer">here</a></strong>. I extracted it, and follow the simple instructions to make the contents available via localhost http (using <code>python -m http.server</code>). So when I go to <code>http://localhost:8000</code>, I see the <code>index.html</code> client. Apparently the only thing we need to check for integration is <code>js/solr-search.js</code> file to make sure the <code>solrURL</code> is set correctly, which the default is good already:</p>
  
  <pre><code>var solrUrl = 'http://' + document.location.hostname + ':8983/solr/';
  </code></pre>
  
  <p>But when I try to press the <code>search</code> button, it doesn't show any results and the loading icon keeps showing:</p>
  
  <p><a href="https://image.ibb.co/bCk7ke/Capture.jpg" rel="nofollow noreferrer"><img src="https://image.ibb.co/bCk7ke/Capture.jpg" alt="Apache solr html client"></a></p>
  
  <p>Where is the problem? How can I fix the issue?</p>
  
  <p><strong>UPDATE: I debugged and noticed this error on <code>index.html</code>:</strong> </p>
  
  <p><code>Failed to load http://localhost:8983/solr/admin/cores?wt=json: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.</code> </p>