backbonejs + cors and save() method
问题 I'm trying to execute a POST throw the save method. Here is my model. app.Models.Dummy = Backbone.Model.extend({ initialize: function () { url = 'http://anotherdomain/Hello/'; }, }); When i execute: dummy.save({text : "greg"}, { success : function(){ console.log('Ok!'); }, error: function(){ console.log('Error'); } }); The request is fired with an OPTIONS header (code 200) but the POST request is never fired. However When i execute: $.ajax({ type: 'POST', url: "http://anotherdomain/Hello/",