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.
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.
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?