When I loaded a page from this site - my tool was not working. WebKit web inspector showed 1 error:
XMLHttpRequest cannot load http://localhost:8080/wsapi/util/uploadpagesrc. Origin https://some.secure.domain is not allowed by Access-Control-Allow-Origin.
SecureSite in his response headers sended Access-Control-Allow-Origin which block ajax request to my localhost site. In forums I found solution to use jsonp request. Here is example:
But I need to send post requests and ability to save large data. In my js tool is used websockets. When ajax requests throws errors websockets works fine. They have only one minus - message size limitation. For cometd it was 8192:$(document).ready(function() { $.getJSON('http://twitter.com/users/usejquery.json?callback=?', function(json) { $('#twitter_followers').text(json.followers_count); }); });
I have not configured websocket server to increase this limit. Maybe I will do this another time