Skip to content

Commit 14c08ba

Browse files
committed
chore: update rest of configs and struct annotation
1 parent 941b983 commit 14c08ba

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

opentdf-core-mode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ server:
4040
allowedheaders:
4141
- ACCEPT
4242
- Authorization
43+
- Connect-Protocol-Version
4344
- Content-Type
4445
- X-CSRF-Token
4546
# List of response headers that browsers are allowed to access

opentdf-ers-mode.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ server:
7575
allowedheaders:
7676
- ACCEPT
7777
- Authorization
78+
- Connect-Protocol-Version
7879
- Content-Type
7980
- X-CSRF-Token
8081
- X-Request-ID
82+
- Connect-Protocol-Version
8183
# List of response headers that browsers are allowed to access
8284
exposedheaders:
8385
- Link

opentdf-example.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ server:
8888
allowedheaders:
8989
- ACCEPT
9090
- Authorization
91+
- Connect-Protocol-Version
9192
- Content-Type
9293
- X-CSRF-Token
94+
- X-Request-ID
9395
# List of response headers that browsers are allowed to access
9496
exposedheaders:
9597
- Link

opentdf-kas-mode.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ server:
8787
allowedheaders:
8888
- ACCEPT
8989
- Authorization
90+
- Connect-Protocol-Version
9091
- Content-Type
9192
- X-CSRF-Token
9293
- X-Request-ID

service/internal/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ type CORSConfig struct {
111111
Enabled bool `mapstructure:"enabled" json:"enabled" default:"true"`
112112
AllowedOrigins []string `mapstructure:"allowedorigins" json:"allowedorigins"`
113113
AllowedMethods []string `mapstructure:"allowedmethods" json:"allowedmethods" default:"[\"GET\",\"POST\",\"PATCH\",\"DELETE\",\"OPTIONS\"]"`
114-
AllowedHeaders []string `mapstructure:"allowedheaders" json:"allowedheaders" default:"[\"Accept\",\"Content-Type\",\"Content-Length\",\"Accept-Encoding\",\"X-CSRF-Token\",\"Authorization\",\"X-Requested-With\",\"Dpop\"]"`
114+
AllowedHeaders []string `mapstructure:"allowedheaders" json:"allowedheaders" default:"[\"Accept\",\"Content-Type\",\"Content-Length\",\"Accept-Encoding\",\"X-CSRF-Token\",\"Authorization\",\"X-Requested-With\",\"Dpop\",\"Connect-Protocol-Version\"]"`
115115
ExposedHeaders []string `mapstructure:"exposedheaders" json:"exposedheaders"`
116116
AllowCredentials bool `mapstructure:"allowcredentials" json:"allowedcredentials" default:"true"`
117117
MaxAge int `mapstructure:"maxage" json:"maxage" default:"3600"`

service/pkg/server/testdata/all-no-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ server:
8383
allowedheaders:
8484
- ACCEPT
8585
- Authorization
86+
- Connect-Protocol-Version
8687
- Content-Type
8788
- X-CSRF-Token
8889
- X-Request-ID

0 commit comments

Comments
 (0)