Skip to content

Commit

Permalink
proto: mark nosemgrep warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JLarky authored and abs committed Aug 29, 2023
1 parent 568ec86 commit bb6b077
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-donuts-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fogbender-proto": patch
---

add nosemgrep comment to ignore issue that should not be affecting production builds
2 changes: 2 additions & 0 deletions packages/fogbender-proto/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function getServerApiUrl(env?: Env, client?: Client) {

export function getServerWsUrl(env?: Env, client?: Client) {
const serverApiUrl = getServerApiUrl(env, client);
// we need to have "ws" support for localhost
// nosemgrep: javascript.lang.security.detect-insecure-websocket.detect-insecure-websocket
const wsPath = serverApiUrl.replace("https://", "wss://").replace("http://", "ws://");
return `${wsPath}/ws/v2`;
}
Expand Down

0 comments on commit bb6b077

Please sign in to comment.