Closed iwindfree closed 2 years ago
If you look at the code here: https://github.com/akamai/boomerang/blob/master/plugins/auto-xhr.js#L2232
You can find the xhr_init
function that's called when an XHR is being initialized(open
(ed)).
Unfortunately, as you can see when you scroll down to around here: https://github.com/akamai/boomerang/blob/master/plugins/auto-xhr.js#L2365 You'll see there's no chance for you to modify any and all network requests made on the page to include a header value.
However, if you intend to add that feature, feel free to contribute it to the team :)
I am developing boomerang plugin. I want to add custom value to request header or read specific header value from response header (simple page and xhr ). Which event should I subscribe (ex: xhr_load, xhr_send etc) I've looked in the development document for boomerang, but I can't find it exactly.