Skip to content

Commit

Permalink
Adds proxy handler for CORS OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
nkcr committed May 11, 2022
1 parent 0b8630d commit d49a531
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/dkg/pedersen/controller/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ func (a *RegisterHandlersAction) Execute(ctx node.Context) error {
ep := eproxy.NewDKG(mngr, dkg, proxykey)

router.HandleFunc("/evoting/services/dkg/actors", ep.NewDKGActor).Methods("POST")
router.HandleFunc("/evoting/services/dkg/actors", eproxy.AllowCORS).Methods("OPTIONS")
router.HandleFunc("/evoting/services/dkg/actors/{electionID}", ep.Actor).Methods("GET")
router.HandleFunc("/evoting/services/dkg/actors/{electionID}", ep.EditDKGActor).Methods("PUT")
router.HandleFunc("/evoting/services/dkg/actors/{electionID}", eproxy.AllowCORS).Methods("OPTIONS")
Expand Down

0 comments on commit d49a531

Please sign in to comment.