0

Is it possible to set default values for future Http Requests such as in jQuery.ajaxSetup() ?

The reason behind this question is the need to send CSRF tokens for every request in Rails.

Community
  • 1
  • 1
Eduardo Copat
  • 4,611
  • 5
  • 22
  • 39

1 Answers1

1

I'm not aware of such a functionality. I would create a method that prepares the HTTPRequest and returns it initialized with the preferred defaults?

Günter Zöchbauer
  • 558,509
  • 191
  • 1,911
  • 1,506