title: Access Denied Error with jQuery [Runs fine on localhost]
body: <p>I am facing an error when calling a WCF method from jQuery.
  The call returns just fine when I implement it on localhost but throws an access denied error when the service is hosted on a separate server.</p>
  
  <p>Here are the steps to reproduce the error:-</p>
  
  <ol>
  <li><p>Run the project locally and check if the service is running
  e.g.:http://localhost:3369/AppsterWcfService.svc/DoWork</p></li>
  <li><p>Create a test client (test.html) page locally and run this project.
  When clicked on the login button it works fine.</p></li>
  <li><p>Now host the service on a remote server and replace the url with the new url i.e. url of the hosted service. </p></li>
  <li><p>Now run the test.html page, click on the button. Here I get access denied error.</p></li>
  </ol>
  
  <p>I have tried various methods of accessing the server e.g.:-</p>
  
  <ol>
  <li>By using MVC</li>
  <li>Handler</li>
  <li>simple .aspx page</li>
  <li>Adding different parameters in the jquery ajax call and web.config file.</li>
  <li>given different permissions in iis. like network service, iuser, anonymous, guest etc.</li>
  </ol>
  
  <p>I suppose it is some kind of cross-domain related issue with jQuery.
  Any help will be appreciated. </p>
  
  <p>Thanks,
  -Sumit</p>