New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom HTTP headers configuration #276
Comments
What would be the purpose of this downstream in Snowplow? |
We would be passing in an authentication header to ensure only authenticated clients can send events. |
It's a neat idea - we are working on an "authenticated events" RFC but no specific plans around how we would implement this at this time (whether it would be headers or an update to the Snowplow Tracker Protocol). |
Will it be possible any time soon to add custom headers? I cannot add it in my client because:
|
#269 Merging this PR will allow adding a header interceptor to the OkHttpClient which will solve this issue. |
Closing as it has been closed in the PR #269 |
@Stonepaw , is it possible to add the custom header now. We are using react native tracker and need to send custom headers |
Hi @shalinibnair , at the moment that feature is not available directly in our react-native tracker. The custom headers can be added in the native trackers (which are wrapped by React Native tracker) but there isn't any specific configuration that lets the developer to set it in the React Native tracker. We (or you, if you prefer) can open an enhancement issue in the react native tracker repository. It's not in our roadmap for this quarter but we may consider that feature for next release. |
@shalinibnair, I've just created the issue in the react native repository. Feel free to continue the conversation there or add details for further improvements. |
Reopening this issue because it is a requested feature to add the ability to set custom headers and the approach to set a custom HTTP client is a bit awkward also because it changes the cookie jar. It would be better to have a an option in the Also it's requested in this Flutter tracker issue: snowplow/snowplow-flutter-tracker#34 |
I would like to add a custom header to outgoing events but I don't see a way to add that to the emitter. Is this supported or could be supported?
The text was updated successfully, but these errors were encountered: