mirror of
https://github.com/yudai/gotty.git
synced 2026-02-19 06:28:07 +01:00
Add new option to allow cross origin requests to WS endpoint
This commit is contained in:
parent
84ec13ca19
commit
6765efbd61
3 changed files with 15 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ type Options struct {
|
|||
Preferences *HtermPrefernces `hcl:"preferences"`
|
||||
Width int `hcl:"width" flagName:"width" flagDescribe:"Static width of the screen, 0(default) means dynamically resize" default:"0"`
|
||||
Height int `hcl:"height" flagName:"height" flagDescribe:"Static height of the screen, 0(default) means dynamically resize" default:"0"`
|
||||
WSOrigin string `hcl:"ws_origin" flagName:"ws-origin" flagDescribe:"A regular expression that matches origin URLs to be accepted by WebSocket. No cross origin requests are acceptable by default" default:""`
|
||||
|
||||
TitleVariables map[string]interface{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue