[Mono-aspnet-list] Consume ASP.NET webservice with AJAX
baptiste.saleil at gmail.com
Tue Oct 30 18:52:06 UTC 2012
I'm developing a webservice for a personnal project.
Of course, I choose ASP.NET <http://asp.net/> and Mono.
My webservice works perfectly excepted when I try to call it from ajax.
I accept cross-domain from the webservice :
And I call my method like this :
var xdr = new XMLHttpRequest();
xdr.onload = function()
This code work perfectly with my method "debug" which is defined like this :
My problem is that I have the error "Origin null is not allowed by
Access-Control-Allow-Origin." as soon as I try to call a method with args
string test(string query)
What I'm doing wrong ?
(And thanks for the work around ASP.NET <http://asp.net/> and Mono)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list