Security Rails ajax call

Hi, I use Rails3.2 and JQuery. If I make an ajax call for example

$.ajax({ url: ‘YOUR URL HERE’,
type: ‘POST’,
beforeSend: function(xhr) {xhr.setRequestHeader(‘X-CSRF-Token’,
data: ‘someData=’ + someData,
success: function(response) {

I send to the server all parameter of autentication in the header
automatically…so there isn’t the problem of security and credentials?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs