From 74c57837ec1f13f116a24dea0a913fd3d293c55e Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Tue, 17 Dec 2024 11:20:06 +0300 Subject: [PATCH] feat: enable CORS on ccip read endpoint --- internal/api/ccip.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/api/ccip.go b/internal/api/ccip.go index e727275..8163830 100644 --- a/internal/api/ccip.go +++ b/internal/api/ccip.go @@ -104,6 +104,7 @@ 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, })