title: Access-Control-Allow-Origin for Rocket chat integration
body: <p>I have implemented the rocket chat with my application. So following are the details which I have done on local system:</p>
  
  <ol>
  <li><p>Rocket chat installed on: <code>http://192.168.10.180:3000</code></p></li>
  <li><p>My application installed on: <code>http://192.168.10.180</code></p></li>
  </ol>
  
  <p>And I am sending the origin header as <code>http://192.168.10.180</code> while I am accessing rocket chat server.</p>
  
  <p>And it's working good in local environment.</p>
  
  <p>But the same thing I have done on my server as.</p>
  
  <ol>
  <li><p>Rocket installed on: <code>http://app.ptl.staging.edubold.com:3000</code></p></li>
  <li><p>My application is on: <code>http://app.ptl.staging.edubold.com</code></p></li>
  </ol>
  
  <p>and I am sending the origin as: <code>http://app.ptl.staging.edubold.com</code>.</p>
  
  <p>But on this I am getting the following error.</p>
  
  <pre class="lang-none prettyprint-override"><code>Failed to load http://app.apiptl.staging.edubold.com/app_dev.php    
  /api/rocetchat/authuser: The 'Access-Control-Allow-Origin' header has a
    value 'http://app.ptl.staging.edubold.com:3000' that is not equal to the 
    supplied origin. Origin 'http://app.ptl.staging.edubold.com' is 
     therefore not allowed access.
  </code></pre>