Skip to content

Commit 15c7a30

Browse files
committed
feat(otel-2647): update cors
1 parent 3397f8c commit 15c7a30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

receiver/datadogrumreceiver/receiver.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,11 @@ func (ddr *datadogRUMReceiver) Start(ctx context.Context, host component.Host) e
6060

6161
var err error
6262

63-
// TODO: ask dinesh about this
64-
// TODO: look over this
63+
// TODO: double check this
6564
corsHandler := cors.New(cors.Options{
6665
AllowedOrigins: []string{"https://localhost:*", "http://localhost:*"}, // Specify allowed origins
6766
AllowedMethods: []string{"GET", "POST", "OPTIONS"}, // Specify allowed methods
6867
AllowedHeaders: []string{"Content-Type", "Authorization", "Traceparent"}, // Specify allowed headers
69-
ExposedHeaders: []string{"Traceparent"}, // Expose trace context headers
7068
AllowCredentials: true, // Allow credentials
7169
}).Handler(ddmux)
7270

0 commit comments

Comments
 (0)