5 ms·
Out of curiosity, why doesn't hooking beforeSend (as suggested in the blog post) work?
by nbpoole 16y ago
Out of curiosity, why doesn't hooking beforeSend (as suggested in the blog post) work?
- bryanh 16y agoI haven't had a chance to try it, but if it gracefully handles every jQuery plug-ins' use of the .ajax() method, I don't see why it wouldn't work.
- Pewpewarrows 16y agoThis is correct. So long as the plugins themselves are using jQuery's own $.ajax() method (or one of its derivatives that in turn call it), then anything in ajaxSetup will be reflected in those requests.