Skip to content

Commit e91c2a9

Browse files
committed
Add CORS to Discovery
1 parent d4373f7 commit e91c2a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

charts/identity/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn's IdP
44

55
type: application
66

7-
version: v0.1.5
8-
appVersion: v0.1.5
7+
version: v0.1.6
8+
appVersion: v0.1.6
99

1010
icon: https://raw.githubusercontent.com/unikorn-cloud/assets/main/images/logos/dark-on-light/icon.png

pkg/handler/handler.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ func (h *Handler) setCORS(w http.ResponseWriter) {
6767
}
6868

6969
func (h *Handler) GetWellKnownOpenidConfiguration(w http.ResponseWriter, r *http.Request) {
70+
h.setCORS(w)
71+
7072
result := &generated.OpenidConfiguration{
7173
Issuer: h.options.Host,
7274
AuthorizationEndpoint: fmt.Sprintf("%s/oauth2/v2/authorization", h.options.Host),

0 commit comments

Comments
 (0)