fix #33
This commit is contained in:
parent
51f0ef8b07
commit
0d0395aed3
2
cors.go
2
cors.go
@ -77,7 +77,7 @@ func (c Config) Validate() error {
|
|||||||
// DefaultConfig returns a generic default configuration mapped to localhost.
|
// DefaultConfig returns a generic default configuration mapped to localhost.
|
||||||
func DefaultConfig() Config {
|
func DefaultConfig() Config {
|
||||||
return Config{
|
return Config{
|
||||||
AllowMethods: []string{"GET", "POST", "PUT", "HEAD"},
|
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
|
||||||
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
|
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
|
||||||
AllowCredentials: false,
|
AllowCredentials: false,
|
||||||
MaxAge: 12 * time.Hour,
|
MaxAge: 12 * time.Hour,
|
||||||
|
Loading…
Reference in New Issue
Block a user