Repository navigation
Using headers to pass client-side information, such as device language, to the server. #3194
Unanswered
skutimechanic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is it possible to add header to every request that is made by the client-side? In the header I would like to pass for instance an information about device language.
I've checked the #663, but I am not sure how to add the header on the client-side.
Following the documentation, it is possible to access the header by using
(session as MethodCallSession).httpRequest.headers.valueon the server.If there is an other way to do so, please advice me how to handle such cases. I would like to avoid adding a field language to every request model.
All reactions