Skip to content

Commit

Permalink
client/webserver: use prepared webserver adress in csp
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon committed Apr 12, 2023
1 parent 797acba commit 709a770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/webserver/webserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func (s *WebServer) Connect(ctx context.Context) (*sync.WaitGroup, error) {
// Safari. When this is removed, the allowInCSP variable can be removed
// but prepareAddr should still return 127.0.0.1 for unspecified
// addresses.
s.csp = fmt.Sprintf("%s ws://%s", baseCSP, s.addr)
s.csp = fmt.Sprintf("%s ws://%s", baseCSP, addr)
}
s.addr = addr

Expand Down

0 comments on commit 709a770

Please sign in to comment.