Closed alwqx closed 7 years ago
+1. Also ran into this bug today.
@adolphlwq @alfg I think that comments are wrong or misleading information because cors already have config.AllowAllOrigins = true
for all origins can be allowed and ' And set default value ["*"] didn't work.
Maybe can fixed and/or removed that commnets.
@adolphlwq @alfg Please see the PR #24
maybe we need to remove comment Default value is ["*"]
or auto set *
on the default value.
Below is the source code
AllowOrigins default value is
[*]
, If I do not specify it,I run into error:If I specify it
AllowOrigins: []string{"*"}
, I run into error:So I think below code should support AllowOrigins default value ["*"]
Above just my personal opition:)