Config option for extra request headers
Set option xhr_headers
to pass extra headers with each request (for instance, to authenticate through a proxy):
mixpanel.init('MY-TOKEN', {
xhr_headers: {
'X-Foo': 'Bar',
'X-Baz': 'Qux',
},
});
Set option xhr_headers
to pass extra headers with each request (for instance, to authenticate through a proxy):
mixpanel.init('MY-TOKEN', {
xhr_headers: {
'X-Foo': 'Bar',
'X-Baz': 'Qux',
},
});