Skip to content

Commit

Permalink
(FFM-7189) Allow extra headers (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
conormurray95 authored Mar 20, 2023
1 parent c9331b2 commit 400b846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func cors(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Access-Control-Allow-Origin", "*")
w.Header().Add("Access-Control-Allow-Methods", "GET,OPTIONS,POST")
w.Header().Add("Access-Control-Allow-Headers", "Content-Type,Authorization,Accept,Origin,API-Key")
w.Header().Add("Access-Control-Allow-Headers", "Content-Type,Authorization,Accept,Origin,API-Key,Harness-SDK-Info,Harness-AccountID,Harness-EnvironmentID")

if r.Method == http.MethodOptions {
return
Expand Down

0 comments on commit 400b846

Please sign in to comment.