Skip to content

Commit

Permalink
Minor fix for disable rxss detection config
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-ap committed Jan 25, 2024
1 parent 74b8e5d commit fe699e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/integrations/nrsecurityagent/nrsecurityagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func ConfigSecurityValidatorServiceEndPointUrl(url string) ConfigOption {
}

// ConfigSecurityDetectionDisableRxss is used to enable or disable RXSS validation.
func ConfigSecurityDetectionDisableRxss(isEnabled bool) ConfigOption {
func ConfigSecurityDetectionDisableRxss(isDisable bool) ConfigOption {
return func(cfg *SecurityConfig) {
cfg.Security.Detection.Rxss.Enabled = isEnabled
cfg.Security.Detection.Rxss.Enabled = !isDisable
}
}

Expand Down

0 comments on commit fe699e6

Please sign in to comment.