Great, thank you for integrating my code snippet into the documentation so quickly …
But, anyway, maybe you should also point out, that when using the beforeSend callback as a preset, it must be set besides the presets key in the config to work, not within it (which I tried first):