mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
456 B
15 lines
456 B
2 years ago
|
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"`
|
||
|
}
|