Open
Description
I should be able to send a custom header (eg Authorization) within the request considering the fact that I can point my instance to another endpoint which may need other kinds of information
const optimizely = createInstance({
sdkKey: 'development',
headers: { Authorization: "23984712348213g48b8sgd8f" } // suggestion
datafileOptions: {
urlTemplate: 'http://localhost:3001/optimizely/datafile/%s',
},
})
Activity
Tamara-Barum commentedon Jul 19, 2023
Internal Ticket: [FSSDK-8655]
junaed-optimizely commentedon Nov 4, 2024
UPDATE:
This seems like a good addition to the SDK. Nothing to do in React however. Underlying JS SDK needs to implement this.
We can keep the issue open, and get back to it when the update gets done in the JS side.
Thanks!