goploy/config/cors.go
2024-01-19 09:25:00 +08:00

10 lines
232 B
Go

package config
type CORSConfig struct {
Enabled bool `toml:"enabled"`
Origins string `toml:"origins"`
Methods string `toml:"methods"`
Headers string `toml:"headers"`
Credentials bool `toml:"credentials"`
}