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

Dynamic request customHeaders #28

Closed
lucapollani opened this issue Sep 22, 2020 · 3 comments
Closed

Dynamic request customHeaders #28

lucapollani opened this issue Sep 22, 2020 · 3 comments

Comments

@lucapollani
Copy link

🚀 Feature Proposal

The request is to have customHeaders that can change over calls, in particular Authorization one.
Already implemented in i18next-xhr-backend but now it is deprecated, link to commit here.

Motivation

The necessity is basically the same reported i18next-xhr-backend here.

Example

Initialize i18next without any token as Authorization header, login to your app and need to set the retrieved token into i18next backend plugin, for example to add missing labels.

@adrai
Copy link
Member

adrai commented Sep 22, 2020

Can you try with 1.0.21 ?

@lucapollani
Copy link
Author

Thank you for the super fast response and... also implementation!
Tested in 1.0.21 and it seems to work as expected.

Remember to edit documentation accordingly ;)

@adrai
Copy link
Member

adrai commented Sep 22, 2020

Nice!

If you like this module don’t forget to star this repo. Make a tweet, share the word or have a look at our https://locize.com to support the devs of this project.

There are many ways to help this project 🙏

@adrai adrai closed this as completed Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants