Access Denied Error with jQuery [Runs fine on localhost]
===

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.

Here are the steps to reproduce the error:-

1. Run the project locally and check if the service is running
e.g.:http://localhost:3369/AppsterWcfService.svc/DoWork
 
2.  Create a test client (test.html) page locally and run this project.
When clicked on the login button it works fine.
 
3. Now host the service on a remote server and replace the url with the new url i.e. url of the hosted service. 
 
4. Now run the test.html page, click on the button. Here I get access denied error.
 

I have tried various methods of accessing the server e.g.:-

1. By using MVC
2. Handler
3. simple .aspx page
4. Adding different parameters in the jquery ajax call and web.config file.
5. given different permissions in iis. like network service, iuser, anonymous, guest etc.
 
I suppose it is some kind of cross-domain related issue with jQuery.
Any help will be appreciated. 

Thanks,
-Sumit
