Skip to content

Is this singleton insecure in production? #2062

Closed Answered by jamuhl
UROjQ6r80p asked this question in Q&A
Discussion options

You must be logged in to vote

As long you only use thereq.t that you set - you should be fine. The problem only arises when you directly use i18next.t -> which could be set to any language the last incoming request set - while your pending requests still rely on other languages.

There is also https://github.com/i18next/i18next-http-middleware so there is no need to create this stuff yourself

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@UROjQ6r80p
Comment options

@jamuhl
Comment options

@UROjQ6r80p
Comment options

Answer selected by UROjQ6r80p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants