This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var oldSync = Backbone.sync; | |
Backbone.sync = function(method, model, options){ | |
options.beforeSend = function(xhr){ | |
xhr.setRequestHeader('X-CSRFToken', CSRF_TOKEN); | |
}; | |
return oldSync(method, model, options); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 Apr 16:27:32 - Client 8192318114452064 connected | |
Adding 8192318114452064. Counter is 0 | |
24 Apr 16:27:39 - Initializing client with transport "websocket" | |
24 Apr 16:27:39 - Client 4147976329550147 connected | |
Adding 4147976329550147. Counter is 1 | |
Adding 4147976329550147. Counter is 2 | |
24 Apr 16:27:53 - Initializing client with transport "websocket" | |
24 Apr 16:27:53 - Client 015604767017066479 connected | |
Adding 015604767017066479. Counter is 3 | |
Adding 015604767017066479. Counter is 4 |