mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-04 18:05:19 +08:00
15 lines
456 B
Go
15 lines
456 B
Go
package configs
|
|
|
|
type CORS struct {
|
|
Mode string `mapstructure:"mode"`
|
|
WhiteList []CORSWhiteList `mapstructure:"whitelist"`
|
|
}
|
|
|
|
type CORSWhiteList struct {
|
|
AllowOrigin string `mapstructure:"allow-origin"`
|
|
AllowMethods string `mapstructure:"allow-methods"`
|
|
AllowHeaders string `mapstructure:"allow-headers"`
|
|
ExposeHeaders string `mapstructure:"expose-headers"`
|
|
AllowCredentials bool `mapstructure:"allow-credentials"`
|
|
}
|