From 1a60104329fcdef3302f092d6efe94465e231928 Mon Sep 17 00:00:00 2001 From: AmaliMatharaarachchi Date: Mon, 8 Apr 2024 16:46:47 +0530 Subject: [PATCH] fix cors enable issue --- common-go-libs/apis/dp/v1alpha2/apipolicy_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-go-libs/apis/dp/v1alpha2/apipolicy_types.go b/common-go-libs/apis/dp/v1alpha2/apipolicy_types.go index c92ad8bdc..97058433e 100644 --- a/common-go-libs/apis/dp/v1alpha2/apipolicy_types.go +++ b/common-go-libs/apis/dp/v1alpha2/apipolicy_types.go @@ -60,7 +60,7 @@ type PolicySpec struct { // // +kubebuilder:default:=false // +optional - SubscriptionValidation bool `json:"subscriptionValidation,omitempty"` + SubscriptionValidation bool `json:"subscriptionValidation"` } // BackendJWTToken holds backend JWT token information @@ -76,7 +76,7 @@ type CORSPolicy struct { // // +kubebuilder:default=true // +optional - Enabled bool `json:"enabled,omitempty"` + Enabled bool `json:"enabled"` // AllowCredentials indicates whether the request can include user credentials like // cookies, HTTP authentication or client side SSL certificates.