<?php

return [
    'paths' => ['api/*', 'v1/*'],

    'allowed_methods' => ['*'],

    'allowed_origins' => [
        env('APP_URL', 'http://localhost'),
        env('APP_CONNECT_URL', 'http://localhost'),
        // Lokal:
        'http://app.aziros.local',
        'http://api.aziros.local',
        // Staging:
        'https://app.staging.aziros.com',
        // Production:
        'https://app.aziros.com',
        'https://www.aziros.com',
    ],

    'allowed_origins_patterns' => [
        '#^https?://.*\.aziros\.(com|local)$#',
    ],

    'allowed_headers' => ['*'],

    'exposed_headers' => [],

    'max_age' => 0,

    'supports_credentials' => true,
];
