I am using azure traffic manager for load balancing of my virtual machines. But it is giving CORS blocked error when calling from ajax.
I have CORS enabled for my machines url.
can any one provide me some solutions.
I am using azure traffic manager for load balancing of my virtual machines. But it is giving CORS blocked error when calling from ajax.
I have CORS enabled for my machines url.
can any one provide me some solutions.
Sounds like you are calling the traffic manager load balanced endpoint from a page that is on a different domain, is that right? Like your HTML page is on domain.com, and ajax in your page is calling domain.trafficmanager.com - is that why your getting CORS exceptions? If so can you just change the CNAME for your domain.com to point to domain.trafficmanager.com so your whole website is served from the same domain? Of course this implies your application server for both HTML / Javascript, etc. are all being served by the same process (not sure if that's the case here).