- 
                Notifications
    You must be signed in to change notification settings 
- Fork 44
ApiCorsConfig
        thiagobustamante edited this page May 22, 2017 
        ·
        1 revision
      
    Configurations for cors on API requests.
This configuration object extends the CorsConfig and adds the following properties:
| Property | Type | Description | Required | 
|---|---|---|---|
| group | string[] | A list of group names that should be handled by this configuration. If not provided, everything will be handled. | false | 
Example:
{
    "cors" : [{
        "origin": {
            "allow": { "value": "http://example1.com"}
        },
        "methods": ["GET", "PUT", "POST"],
        "allowedHeaders": ["Content-Type", "Authorization"],
        "group": ["Group1", "Group3"]
        
    },
    {
        "origin": {
            "allow": { "regexp": "/example\\.com$/"}
        },
        "methods": ["PUT", "POST"],
        "group": ["Group2"]
    }]
}