Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive on owasp:api8:2023-define-cors-origin when defining components.headers #71

Open
erwinkramer opened this issue Dec 21, 2024 · 0 comments

Comments

@erwinkramer
Copy link

Context

This file openapi_v1.json throws:

Header headers.Access-Control-Allow-Origin should be defined on all responses.

This is because in components.headers i set "Access-Control-Allow-Origin-BREAKING" as ref. It somehow, falsely, validates the ref id's in this section and the owasp rule assumes that it's an actual header name. If i change the ref id to Access-Control-Allow-Origin it works again (= the workaround), but this is not what i expect it to behave like.

Environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant