title: Using jQuery.ajax in a Google Chrome extension
body: <p>I use jquery.ajax function to post data from google chrome extension to my web service as code below:</p>
  
  <pre><code>$.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();
                  }
             }
           });
  </code></pre>
  
  <p>but i get an error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://todomain.com/Service.asp. Origin http://fromtabdomain.com is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>how can i resolve it?</p>