1 Star 1 Fork 0

Allen / go-scaffold

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
config.go 535 Bytes
Copy Edit Raw Blame History
Allen authored 2020-08-18 20:54 . add tls config
/**
* @Author ZoeAllen
* @create 2020/8/18 8:44 下午
*/
package server
var defaultServerOptions = Options{
CORSAllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
CORSAllowedOrigins: []string{"*"},
CORSAllowedHeaders: []string{"Origin", "Content-Length", "Content-Type", "Authorization", "X-Requested-With"},
}
type Option func(options *Options)
// ConnectOptions for hub connection config
type Options struct {
CORSAllowedMethods []string
CORSAllowedOrigins []string
CORSAllowedHeaders []string
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/zakums06/go-scaffold.git
git@gitee.com:zakums06/go-scaffold.git
zakums06
go-scaffold
go-scaffold
v0.1.11

Search