title: How to solve 'Redirect has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header'?
body: <p>I am working on an app using <code>Vue js</code>.
  According to my setting I  need to pass to a variable to my URL when setting change.</p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;!-- language: lang-js --&gt;
  
      $.get('http://172.16.1.157:8002/firstcolumn/' + c1v + '/' + c1b, function (data) { 
        // some code...
      });
  </code></pre>
  
  <p>But when my app hit on URL, it shows the following message.</p>
  
  <pre><code>Failed to load http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26: Redirect from 'http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26' to 'http://172.16.1.157:8002/firstcolumn/2017-03-01/2017-10-26/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
  </code></pre>