Skip to content

Commit 976cbc2

Browse files
committed
chore: change default allowed CORS headers
1 parent eed8c78 commit 976cbc2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func NewRootCmd(v *viper.Viper) *cobra.Command {
108108
// CORS configuration
109109
rootCmd.PersistentFlags().String("cors.allow-origin", "*", "CORS allowed origin")
110110
rootCmd.PersistentFlags().String("cors.allow-methods", "GET, POST, PUT, DELETE, OPTIONS", "CORS allowed methods")
111-
rootCmd.PersistentFlags().String("cors.allow-headers", "Content-Type, Authorization", "CORS allowed headers")
111+
rootCmd.PersistentFlags().String("cors.allow-headers", "Content-Type, Authorization, Traceparent, Baggage", "CORS allowed headers")
112112

113113
// Metrics configuration
114114
rootCmd.PersistentFlags().Bool("metrics.enabled", true, "Enable metrics server")

testdata/local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ health:
3030
cors:
3131
allow-origin: "*"
3232
allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
33-
allow-headers: "Content-Type, Authorization"
33+
allow-headers: "Content-Type, Authorization, Traceparent, Baggage"
3434

3535
metrics:
3636
enabled: true

0 commit comments

Comments
 (0)