This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new ed041ba83fc suggest passing the websocket auth token in header (#981)
ed041ba83fc is described below
commit ed041ba83fc541b77392071c2e5acb6984d7d213
Author: Lee hong <[email protected]>
AuthorDate: Mon May 4 16:32:44 2026 +0800
suggest passing the websocket auth token in header (#981)
---
client-libraries/websocket.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/client-libraries/websocket.md b/client-libraries/websocket.md
index 18bcc1c3357..4bb6957b80c 100644
--- a/client-libraries/websocket.md
+++ b/client-libraries/websocket.md
@@ -81,6 +81,7 @@ All exchanges via the WebSocket API use JSON.
### Authentication
#### Browser javascript WebSocket client
+> For security reasons, we suggest passing the token as headers rather than as
query parameters.
Use the query param `token` to transport the authentication token.