Documentation ¶
Overview ¶
Package cors - CORS (Cross Origin Resource Sharing) 을 지원하는 미들웨어 패키지
Index ¶
Constants ¶
View Source
const (
// MWNamespace - Middleware 설정 식별자
MWNamespace = "mw-cors"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AllowOrigins []string `yaml:"allow_origins"` AllowMethods []string `yaml:"allow_methods"` AllowHeaders []string `yaml:"allow_headers"` ExposeHeaders []string `yaml:"expose_headers"` AllowCredentials bool `yaml:"allow_credentials"` MaxAge time.Duration `yaml:"max_age"` }
Config - Middleware 설정 정보 형식
func ParseConfig ¶
ParseConfig - CORS 운영을 위한 Configuration parsing 처리
Click to show internal directories.
Click to hide internal directories.