CORS
use Native\Api\Config\Internals\CorsConfig;
$value = CorsConfig::ORIGIN_ALLOWED;| Константа | Значение |
|---|---|
| ORIGIN_ALLOWED | * |
| ORIGINS_ALLOWED | [’*’] |
| METHODS_ALLOWED | [‘GET’, ‘POST’, ‘PUT’, ‘PATCH’, ‘DELETE’, ‘OPTIONS’, ‘HEAD’] |
| HEADERS_ALLOWED | [‘Origin’, ‘Content-Type’, ‘Authorization’, ‘X-Requested-With’] |
| HEADERS_EXPOSED | [‘Retry-After’] |
| MAX_AGE | 3600 |