Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CORSConfig ¶
type CORSConfig struct {
AllowOrigins []string `env:"CORS_ALLOW_ORIGINS"`
AllowMethods []string `env:"CORS_ALLOW_METHODS" envDefault:"GET,POST,PUT,PATCH,DELETE,OPTIONS,HEAD"`
AllowHeaders []string `env:"CORS_ALLOW_HEADERS" envDefault:"Content-Type,Authorization"`
ExposeHeaders []string `env:"CORS_EXPOSE_HEADERS"`
AllowCredentials bool `env:"CORS_ALLOW_CREDENTIALS" envDefault:"false"`
MaxAge int `env:"CORS_MAX_AGE" envDefault:"0"`
}
Click to show internal directories.
Click to hide internal directories.