Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion opentdf-core-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
8 changes: 6 additions & 2 deletions opentdf-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Request-ID
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
8 changes: 6 additions & 2 deletions opentdf-ers-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Request-ID
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
8 changes: 6 additions & 2 deletions opentdf-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Request-ID
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
8 changes: 6 additions & 2 deletions opentdf-kas-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Request-ID
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
2 changes: 1 addition & 1 deletion service/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type CORSConfig struct {
Enabled bool `mapstructure:"enabled" json:"enabled" default:"true"`
AllowedOrigins []string `mapstructure:"allowedorigins" json:"allowedorigins"`
AllowedMethods []string `mapstructure:"allowedmethods" json:"allowedmethods" default:"[\"GET\",\"POST\",\"PATCH\",\"DELETE\",\"OPTIONS\"]"`
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\"]"`
AllowedHeaders []string `mapstructure:"allowedheaders" json:"allowedheaders" default:"[\"Accept\",\"Accept-Encoding\",\"Authorization\",\"Connect-Protocol-Version\",\"Content-Length\",\"Content-Type\",\"Dpop\",\"X-CSRF-Token\",\"X-Requested-With\",\"X-Rewrap-Additional-Context\"]"`
ExposedHeaders []string `mapstructure:"exposedheaders" json:"exposedheaders"`
AllowCredentials bool `mapstructure:"allowcredentials" json:"allowcredentials" default:"true"`
MaxAge int `mapstructure:"maxage" json:"maxage" default:"3600"`
Expand Down
8 changes: 6 additions & 2 deletions service/pkg/server/testdata/all-no-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ server:
- OPTIONS
# List of headers that are allowed in a request
allowedheaders:
- ACCEPT
- Accept
- Accept-Encoding
- Authorization
- Connect-Protocol-Version
- Content-Length
- Content-Type
- Dpop
- X-CSRF-Token
- X-Request-ID
- X-Requested-With
- X-Rewrap-Additional-Context
# List of response headers that browsers are allowed to access
exposedheaders:
- Link
Expand Down
Loading