Hi Leo,
I am not sure that your question is related to Orbeon Forms, since you are
doing this in JavaScript, and don't see the headers being passed, but how
are you trying to pass the headers?
‑Alex
-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet