I have two separate projects
http://www.local.mysite.com (mvc websites) http://api.mysite.com (webapi)
I'd like to avoid using CORS, (currently required for my web ajax calls) (as they are across origin).
So could I in theory, host the webapi under the same domain, using a suffix:
http://www.local.mysite.com/api ? (with an IIS binding to this for the api)
Would this work? My concern is the Mvc website will intercept the requests also, or that maybe it is a bit dodgey.