title: Cross domain work around with IIS7.5
body: <p>I am building an application that is ready for release however I have come up against the cross domain scripting problem within my ajax calls.</p>
  
  <p>I am using IIS7.5 and I have the following applications setup</p>
  
  <p>Marketing Application - 'www.mydomain.com' - Used as the marketing website and for registering for a new business.I have a rule that forces any non www. to be www</p>
  
  <p>Business Application - 'https://newbusiness.mydomain.com' - Used to access their services they have subscribed to</p>
  
  <p>API Application - 'https://newbusiness.mydomain.com/api/.......' - Used for business application to do crud operations</p>
  
  <p>API application is an application running under the business application. Containing a number of secured methods and some anonymous ones.</p>
  
  <p>With jquery I am having trouble from my marketing application trying to call the api application. Currently if I want to call the api from my marketing site I am doing something like 'https://api.mydomain.com/api/whatevermethod' because it is cross domain it fails.</p>
  
  <p>Is there anyway that I can somehow map 'https://api.mydomain.com/api/whatevermethod' to be just 'https://mydomain.com/api/whatevermethod' as this would get me around the cross domain problem.</p>