Skip to content

Commit

Permalink
Add HSTS related response header. (kyma-project#10063)
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiel authored Mar 8, 2024
1 parent c786038 commit 0c9e77d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/dashboard-token-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func HandleTokenRequest(clientID, clientSecret, ghURL, authorizationURL string)

w.Header().Add("content-type", "application/json")
w.Header().Add("Access-Control-Allow-Origin", fmt.Sprintf("https://pages.%s", ghURL))
w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains; preload")
w.Write(b)
}
}
Expand Down

0 comments on commit 0c9e77d

Please sign in to comment.