Mithilfe von jQuery.ajax in eine Google Chrome-Erweiterung

Verwende ich jquery.ajax Funktion zum bereitstellen von Daten aus google-chrome-Erweiterung, um meine web-service-code unten:

$.ajax({
            type: "POST",
            url: serviceUrl,
            data: data,
            success: function(msg){
                if(typeof(Me.config.onSumitted) == "function"){
                    Me.config.onSumitted(msg);
                }
           },
           error: function(){
                if(typeof(Me.config.onError) == "function"){
                    Me.config.onError();
                }
           }
         });

aber ich bekomme eine Fehlermeldung:

XMLHttpRequest cannot load http://todomain.com/Service.asp. Origin http://fromtabdomain.com is not allowed by Access-Control-Allow-Origin.

wie kann ich es beheben?

InformationsquelleAutor Minh Nguyen | 2011-07-23

Schreibe einen Kommentar