Sha256: 3fe7341745f406262ca2c4c5f82fe02f133b3a3ce30e00dccda549b06f25ee7b

Contents?: true

Size: 169 Bytes

Versions: 17

Compression:

Stored size: 169 Bytes

Contents

/**
 * @author Tanin
 */
$w.ajaxSetup({
  beforeSend: function(xhr) {
    xhr.setRequestHeader('X-CSRF-Token', $w('meta[name="csrf-token"]').attr('content'));
  }
}); 

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
whowish_word-1.0.0 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.5 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.4 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.3 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.2 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.2gem lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.1 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.6.0 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.5 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.4 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.3 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.2 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/1_csrf_token_hook.js