I am writing an iPhone app using Jquery/HTML5 (PhoneGap). I exposed a HelloWorld WebAPI service in DNN as per this article. This all works great.
I made a simple HTML page to call the service via Jquery. This works fine if the HTML page is on the same domain/server, however when I call it locally I get the CORS error:
XMLHttpRequest cannot load "...DesktopModules/frameworkservices/api/products/HelloWorld1. Origin http://www.dnndev.me is not allowed by Access-Control-Allow-Origin.
From my understanding, ALL web Mobile APPS (not MVC or Mobile Websites) will have this problem, however it seems I am doing something wrong as no one has hit this problem before on DNN.
I tried the solution suggested here (updated web config and tried the attribute) but neither work. Am I doing something wrong?