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,941
  • 5
  • 23
  • 40

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
  • 623,577
  • 216
  • 2,003
  • 1,567