Skip to content

Commit

Permalink
Authenticate WS connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasBerger committed May 31, 2024
1 parent eca8a69 commit 86076ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/components/cipherlock/CipherlockAdmin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const CipherlockAdmin = () => {
try {
const url = new URL(serverUrl);
const wsUrl = `ws://${url.host}`;
socket = io(wsUrl);
socket = io(wsUrl, {
extraHeaders: {
apikey: apiKey,
}
});
} catch (e) {
setError(e.toString());
setConnecting(false);
Expand Down

0 comments on commit 86076ca

Please sign in to comment.