add cors support

This commit is contained in:
2026-01-23 20:20:32 -05:00
parent 301c19afe1
commit 3a7a036134
5 changed files with 71 additions and 29 deletions

View File

@@ -36,6 +36,8 @@ var testDefaultConfig = &AppConfig{
LogRequests: false,
EnableReflection: true,
EnableInstrumentation: true,
EnableGRPCGateway: true,
GRPCGatewayPath: "/grpc-api",
},
OTEL: &OTELConfig{
Enabled: true,
@@ -90,6 +92,8 @@ func Test_loadConfig(t *testing.T) {
LogRequests: false,
EnableReflection: true,
EnableInstrumentation: true,
EnableGRPCGateway: true,
GRPCGatewayPath: "/grpc-api",
},
OTEL: &OTELConfig{
Enabled: true,
@@ -128,6 +132,8 @@ func Test_loadConfig(t *testing.T) {
LogRequests: true,
EnableReflection: false,
EnableInstrumentation: false,
EnableGRPCGateway: true,
GRPCGatewayPath: "/grpc-api",
},
OTEL: &OTELConfig{
Enabled: false,