fix: cors (#621)

* fix: dont (re)generate client secret with auth type none

* fix(cors): allow Origin from request

* feat: add origin allow list and fix some core issues

* rename migration

* fix UserIDsByDomain

* check origin on userinfo

* update oidc pkg
This commit is contained in:
Livio Amstutz
2020-08-24 10:06:55 +02:00
committed by GitHub
parent 193cfb45f6
commit 4e1e8a714a
18 changed files with 128 additions and 26 deletions

View File

@@ -18,6 +18,8 @@ var (
http_utils.AcceptLanguage,
http_utils.Authorization,
http_utils.ZitadelOrgID,
http_utils.XUserAgent,
http_utils.XGrpcWeb,
},
AllowedMethods: []string{
http.MethodOptions,
@@ -30,9 +32,10 @@ var (
},
ExposedHeaders: []string{
http_utils.Location,
http_utils.ContentLength,
},
AllowedOrigins: []string{
"http://localhost:*",
AllowOriginFunc: func(_ string) bool {
return true
},
}
)