apigee / apigeelint

Static code analysis for Apigee proxy bundles to encourage API developers to use best practices and avoid anti-patterns.
Apache License 2.0
92 stars 71 forks source link

PO032 reports error when <ExposeHeaders>*</ExposeHeaders> #340

Closed kurtkanaskie closed 1 year ago

kurtkanaskie commented 1 year ago

This is not an error, nor should it be a warning, it's a valid configuration.

However, mixing a '*' with other headers should be an error.

This is a minor coding error Line #124 in PO032-CORS-hygiene.js had: else if (h == '' && headers.length != 0){ should be: else if (h == '' && headers.length > 1){

ssvaidyanathan commented 1 year ago

Fixed in v2.31.0