postman-open-technologies / collections

This is where we track everything collections.
Apache License 2.0
5 stars 1 forks source link

Collection to Add CORS Headers to OpenAPI #14

Open kinlane opened 2 years ago

kinlane commented 2 years ago

I'd like to have a collection that will pull an OpenAPI from the Postman API, add CORS headers:

      headers:
        Access-Control-Allow-Origin:
          type: "string"
        Access-Control-Allow-Methods:
          type: "string"
        Access-Control-Allow-Headers:
          type: "string"

to all of the 2X responses for operations, ensuring they are all CORS enabled at the gateway.