segmentio / segmentio/analytics.js-integrations

[segmentio] Make HTTP headers configurable

Open
#560 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
125
Forks
136
Avg merge
2h 45m
Merged PRs (30d)
1

Description

Similarly to what I have described in #559, we would also need an ability to add custom HTTP headers to requests made by analytics.js library. Right now, the headers are hardcoded here. Can you add a new configuration property which will allow us to append additional HTTP headers?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in integrations/segmentio/lib/index.js at the hardcoded headers around line 375, then review issue #559 for the related configuration approach. Add a configuration property that appends custom HTTP headers to analytics.js requests; done means callers can provide additional headers without changing the defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.