Sha256: 1cbec5ca6cf06fac7122eb13cbca1dd5885233fad46b37e9d3893f9ef479a522

Contents?: true

Size: 1.03 KB

Versions: 18

Compression:

Stored size: 1.03 KB

Contents

@allow-rescue
Feature: Cross-Origin Support

  Scenario Outline: Only supported from declared origins, within the API namespace
    When I request CORS from "<path>" with:
      | origin   | method   |
      | <origin> | <method> |
    Then the response should be <code>

    Examples:
      | path       | origin               | method | code            |
      | /priority  | http://cors.test     | PUT    | 404 "Not Found" |
      | /api/pages | http://cors.test     | PUT    | 200 "OK"        |
      | /api/pages | http://anything.else | PUT    | 404 "Not Found" |

  Scenario: Response headers to successful CORS OPTIONS requests
    When I request CORS from "/api/pages" with:
      | origin           | method |
      | http://cors.test | PUT    |
    Then the response should be 200 "OK"
    And  the response headers should include:
      | header                       | value                         |
      | Access-Control-Allow-Origin  | http://cors.test              |
      | Access-Control-Allow-Methods | GET, POST, PUT, PATCH, DELETE |

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
landable-1.14.0 features/api/cors.feature
landable-1.13.2 features/api/cors.feature
landable-1.13.1 features/api/cors.feature
landable-1.12.3 features/api/cors.feature
landable-1.12.2 features/api/cors.feature
landable-1.12.1 features/api/cors.feature
landable-1.11.1 features/api/cors.feature
landable-1.11.0 features/api/cors.feature
landable-1.10.0.rc2 features/api/cors.feature
landable-1.10.0.rc1 features/api/cors.feature
landable-1.9.2 features/api/cors.feature
landable-1.9.1 features/api/cors.feature
landable-1.9.0 features/api/cors.feature
landable-1.9.0.rc2 features/api/cors.feature
landable-1.9.0.rc1 features/api/cors.feature
landable-1.8.0 features/api/cors.feature
landable-1.7.1.rc1 features/api/cors.feature
landable-1.7.0 features/api/cors.feature