title: No 'Access-Control-Allow-Origin' header is present on the requested resource"
body: <p>I have URL rewrite mode enabled for my localhost (apache) server well. But as soon as I try to get access the remote URL via my localhost. it prompts error as:</p>
  
  <pre><code>"Internal Server Error" or sometime "Not Found" 
  </code></pre>
  
  <p>and if I make little change (by removing [P]) in my htaccess file then it's showing the expected URL at console log but still it prompts error as - </p>
  
  <pre><code>" No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin http://localhost:8080' is therefore not allowed access."
  </code></pre>
  
  <p>My .htaccess file is as:</p>
  
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on 
    RewriteCond  %{SERVER_PORT} !^8080$
    RewriteRule ^(.*) http://%{SERVER_NAME}:8080%{REQUEST_URI} [P]
    RewriteRule ^(.*) http://&lt;Remote_ip_address&gt;:&lt;port_no&gt;%{REQUEST_URI} [P]
   &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any suggestion would be highly appreciated !!</p>