diff --git a/internal/api/ccip.go b/internal/api/ccip.go index 8163830..6e19b0b 100644 --- a/internal/api/ccip.go +++ b/internal/api/ccip.go @@ -40,6 +40,7 @@ var ( ) func (a *API) ccipHandler(w http.ResponseWriter, req bunrouter.Request) error { + w.Header().Set("Access-Control-Allow-Origin", "*") r := CCIPParams{ Sender: req.Param("sender"), } @@ -104,7 +105,6 @@ func (a *API) ccipHandler(w http.ResponseWriter, req bunrouter.Request) error { } a.logg.Debug("signed payload", "payload", payload) - w.Header().Set("Access-Control-Allow-Origin", "*") return httputil.JSON(w, http.StatusOK, CCIPOKResponse{ Data: payload, })