stoplightio / spectral-owasp-ruleset

Improve the security of your API by detecting common vulnerabilities as defined by OWASP and enforced with Spectral.
69 stars 11 forks source link

New Rule: Require CORS (OWASP API8) #5

Closed philsturgeon closed 9 months ago

philsturgeon commented 2 years ago

User Story Description

As an API Designer I should probably create a shared CORS header and apply it to all my responses because I always forget to add CORS, and it would be nice if Spectral could remind me to spec it, so that Prism Proxy will remind me to actually code it in. Otherwise this will definitely go online without CORS.

Acceptance Criteria

More information: https://apisecurity.io/encyclopedia/content/owasp/api7-security-misconfiguration

github-actions[bot] commented 8 months ago

:tada: This issue has been resolved in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: