Skip to content

Accessing client username from HTTP headers #618

Closed Answered by jourdain
tpuiseux asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to retrieve those from the JS side and let the JS tell trame who is logged in. Technically trame only care of its websocket so no http header. On the other end, you could add a new endpoint where you can inspect the http header. You will just need the client to make a request on that endpoint using that path when deployed in docker /api/{sessionId}/endpoint.

HTH

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tpuiseux
Comment options

You must be logged in to vote
0 replies
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