good day guys!

i have next code in my js-script:
            $.ajax({
                url: 'http://localhost:9090/api?callback=?&_=?',
                type: 'post',
                dataType: 'json',
                data: {"sites" :$.toJSON(in_res),
                         "out_res_http": $.toJSON(out_res_http),
                         "out_res_http_www": $.toJSON
(out_res_http_www),
                         "out_res": $.toJSON(out_res)},
                success: function(data) {
                        alert(data.success);
                },
                error: function(data){
                    alert ('error!' + " " +data);
                }
            });
as you see it tries to do post request to my server with some python
controller on it, function works proper way on Safari (one of the
latest versions) and in IE8, but in ff and chrome, browser sends
OPTIONS request. Yeap. i've googled a lot on this issue, but i
couldn't get any clearness for me.

thanks for any of your opinions

Reply via email to