Skip to content

Config option for extra request headers

Compare
Choose a tag to compare
@tdumitrescu tdumitrescu released this 22 May 19:52
· 762 commits to master since this release

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',
  },
});