Skip to content

Commit 400b846

Browse files
(FFM-7189) Allow extra headers (#135)
1 parent c9331b2 commit 400b846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport/http_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func cors(next http.Handler) http.Handler {
151151
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
152152
w.Header().Add("Access-Control-Allow-Origin", "*")
153153
w.Header().Add("Access-Control-Allow-Methods", "GET,OPTIONS,POST")
154-
w.Header().Add("Access-Control-Allow-Headers", "Content-Type,Authorization,Accept,Origin,API-Key")
154+
w.Header().Add("Access-Control-Allow-Headers", "Content-Type,Authorization,Accept,Origin,API-Key,Harness-SDK-Info,Harness-AccountID,Harness-EnvironmentID")
155155

156156
if r.Method == http.MethodOptions {
157157
return

0 commit comments

Comments
 (0)