Skip to content

Commit

Permalink
Merge pull request #1712 from vkubiv/feat-rp-did-wellknow-cors
Browse files Browse the repository at this point in the history
feat: add CORS to .well-known/did-configuration.json endpoint.
  • Loading branch information
rolsonquadras committed Aug 3, 2023
2 parents 479bb15 + 84ff361 commit f015609
Showing 1 changed file with 1 addition and 0 deletions.
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 f015609

Please sign in to comment.