Add new option to allow cross origin requests to WS endpoint

This commit is contained in:
Iwasaki Yudai 2017-08-13 15:09:22 +09:00
parent 84ec13ca19
commit 6765efbd61
3 changed files with 15 additions and 2 deletions

View file

@ -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{}
}