chore: Add CORS headers to Telemetry and OTelCollector

This commit adds CORS headers to the Telemetry and OTelCollector components to allow cross-origin resource sharing. This enables the client to make requests to these components from different origins. The headers include "Access-Control-Allow-Credentials", "Access-Control-Allow-Origin", "Access-Control-Allow-Methods", and "Access-Control-Allow-Headers".
This commit is contained in:
Simon Larsen 2024-07-10 11:48:22 +01:00
parent 55e043f3bd
commit 5172d7f349
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA

View File

@ -11,8 +11,10 @@ receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
include_metadata: true
http:
endpoint: 0.0.0.0:4318
include_metadata: true
cors:
allowed_origins: ["*"]