title: I have installed ApacheOpenmeetings On a local server. How can i access rest api's from another application?
body: <p>Getting below error on requesting from localhost:-</p>
  
  <p>XMLHttpRequest cannot load <a href="http://192.168.1.3:5080/openmeetings/services/user/login?user=user&amp;pass=pass" rel="nofollow noreferrer">http://192.168.1.3:5080/openmeetings/services/user/login?user=user&amp;pass=pass</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost" rel="nofollow noreferrer">http://localhost</a>' is therefore not allowed access.</p>
  
  <p>Code is written as </p>
  
  <pre><code>&lt;script&gt;
          $(document).ready(function(){
              $("#meet").click(function(){
                  $.ajax({
                      method: "GET",
                      url: "'.$server.'services/user/login",
                      data: {user: "user", pass: "pass"},
                      dataType: "json",
                      success : function(data){
                      if(data["serviceResult"]["code"]==1){
                          var code = data["serviceResult"]["message"];
                          $.ajax({
                          method: "POST",
                          url: "'.$server.'services/user/hash?sid=" + code ,
                          data: {user: JSON.stringify({
                              firstname: "Edubeans",
                              lastname: "Student",
                              externalId: "uid1",
                              externalType: "myCMS",
                              login: "pivotal"
                          }),
                          options: JSON.stringify({
                              roomId: 7,
                              moderator: true,
                              showAudioVideoTest: true
                          })
                           },
                           dataType: "json",
                           success : function(data1){
                           $("#link").html(\'&lt;a href="'.$server.'hash?secure=\'+data1["serviceResult"]["message"]+\'&amp;language=1" target="_blank"&gt;Please click here to Enter the room.&lt;/a&gt;\');     
                      }
  
  
                  })                                      
                  }
              }
          });                                     
      });                 
  });
  &lt;/script&gt;
  </code></pre>