.ajaxSetup predefines all parameters
If you have to set some custom headers on every request like CSRF tokens, it is tedious to specify them on every request. Allow .ajaxSetup to predefined them once, so they are used in every request.
+1, specially for CSRF tokens. I'm currently experiencing this issue.
@ded is this something you'd be interested in adding?
this is a good change and I definitely welcome it. At this moment the pull request is conflicting. Would you mind confining your commits to just src/reqwest.js and the README file? I can run the builds when appropriate.
Done. I reduced the amount of changed files now. And rebased to current master, just to be on the safe side.
+1
@ded xmas ping! :)
We've monkey-patched our version of reqwest (@Plangrid) to incorporate this change. Any chance it gets merged into the official version? @ded :)
Just hit this today (for CSRF) and would also love to see this merged.