Skip to content
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

Optizely instace with custom headers #56

Open
wellyal opened this issue Jul 24, 2020 · 1 comment
Open

Optizely instace with custom headers #56

wellyal opened this issue Jul 24, 2020 · 1 comment

Comments

@wellyal
Copy link

wellyal commented Jul 24, 2020

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',
    },
  })
@Tamara-Barum
Copy link

Internal Ticket: [FSSDK-8655]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants