Skip to content

Commit

Permalink
feat: add CORS to .well-known/did-configuration.json endpoint.
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Kubiv <[email protected]>
  • Loading branch information
vkubiv committed Aug 3, 2023
1 parent b789070 commit 84ff361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/rp/kustomize/rp/overlays/common/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

DATABASE_PREFIX=verifierrest
RP_VCS_URL=https://verifier-vcs.||DOMAIN||
RP_VCS_V1_URL=https://vcs.||DOMAIN||
RP_VCS_V1_URL=https://vcs-awskms.||DOMAIN||
RP_OIDC_OPURL=https://adapter-hydra.||DOMAIN||/
RP_OIDC_CALLBACK=https://demo-rp.||DOMAIN||
RP_WACI_OIDC_OPURL=https://adapter-hydra.||DOMAIN||/
Expand Down
1 change: 1 addition & 0 deletions pkg/restapi/rp/operation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ func (c *Operation) wellKnownConfig(w http.ResponseWriter, r *http.Request) {
}

w.Header().Set("content-type", httpContentTypeJSON)
w.Header().Set("Access-Control-Allow-Origin", "*")

_, err := w.Write(c.didConfig)
if err != nil {
Expand Down

0 comments on commit 84ff361

Please sign in to comment.