SDK reference / Models / WebApps
WebAppCorsRule
Kind: class
Namespace: Egulu.Sdk.Models.WebApps
One CORS rule: the first rule whose origins match answers the browser.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
AllowCredentials | bool? | allowCredentials | Whether cookies and authorisation headers may be sent (not with `*`). |
AllowedHeaders | List<string>? | allowedHeaders | Request headers a page may send; `*` for any (not with credentials). |
ExposeHeaders | List<string>? | exposeHeaders | Response headers a page's script may read. |
MaxAgeSeconds | int? | maxAgeSeconds | Seconds a browser keeps a preflight answer, 0 to 86400 (default 600). |
Methods | List<string>? | methods | GET | HEAD | POST | PUT | PATCH | DELETE | OPTIONS. |
Origins | List<string>? | origins | `*`, `https://app.example.com` or `https://*.example.com`; lower case. |