mirror of https://github.com/linkerd/linkerd2.git
In the websocket handshake handler for the tap API we were relying on Gorilla's default behavior for validating that requests came from the same host, to protect against Cross-Site WebSocket Hijacking (CSWSH). This change only makes that validation explicit, instead of relying on default behavior, as a best practice. |
||
---|---|---|
.. | ||
testdata | ||
api_handlers.go | ||
api_handlers_test.go | ||
check_same_origin.go | ||
handlers.go | ||
handlers_test.go | ||
reverse_proxy.go | ||
server.go | ||
test_helpers.go |