[FSSDK-12026] add customHeaders option to polling config manager by raju-opti · Pull Request #1107 · optimizely/javascript-sdk

junaed-optimizely

raju-opti added a commit to optimizely/python-sdk that referenced this pull request

Feb 5, 2026
…gers

This change adds support for custom headers in PollingConfigManager and
AuthDatafilePollingConfigManager. Users can now pass custom headers when
initializing the SDK client instance, which will be included in HTTP
requests to fetch the datafile.

Key changes:
- Added custom_headers parameter to PollingConfigManager.__init__()
- Added custom_headers parameter to AuthDatafilePollingConfigManager (inherited)
- Added custom_headers parameter to Optimizely.__init__() and passed to config managers
- Updated fetch_datafile() methods to merge custom headers with internal headers
- User-provided headers take precedence over SDK internal headers
- Added comprehensive test coverage for custom headers functionality

Reference: optimizely/javascript-sdk#1107

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>