feat: Allow custom origin header for Websocket #702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The issue described in #641 (comment) was caused by an hardcoded origin header at
gatus/client/client.go
Line 265 in 1e431c7
bad status
, from https://github.com/golang/net/blob/ab271c317248ea0f18481852f96d12d5eca05cf8/websocket/hybi.go#L440-L445)This PR allows to customize the origin header.
Example
Fixes #641
Checklist
README.md
, if applicable.