Hi,

I'm trying to override the User-Agent of an xhr request but without
success..
I first tried to just call setRequestHeader('user-agent', 'my user
agent'); but Firefox still send its own User Agent. That correct
according to the spec, so I figured I could do this if I have the
systemXHR permission, but a xhr = new XMLHttpRequest([mozAnon: true,
mozSystem: true}) don't want to override the user agent either.
Is it intended? I might ask for network-tcp permission but it seems a
bit overkill :s

Apparently nobody does it in the gaia app, so has anyone tried it? Can I
do it? how?
If it's not currently possible, is it reasonable to fill a bug to ask to
add this systemXHR?

thank you,


--
Mathieu Rochette
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to