'development', // Returns a detailed HTML page with error details and // a stack trace. Should be disabled in production. 'slim.displayErrorDetails' => true, // Whether to display errors on the internal PHP log or not. 'slim.logErrors' => false, // If true, display full errors with message and stack trace on the PHP log. // If false, display only "Slim Application Error" on the PHP log. // Doesn't do anything when 'logErrors' is false. 'slim.logErrorDetails' => false, // CORS settings // @see https://github.com/neomerx/cors-psr7/blob/master/src/Strategies/Settings.php 'cors.settings' => [ isset($_SERVER['HTTPS']) ? 'https' : 'http', // serverOriginScheme $_SERVER['SERVER_NAME'], // serverOriginHost null, // serverOriginPort false, // isPreFlightCanBeCached 0, // preFlightCacheMaxAge false, // isForceAddMethods false, // isForceAddHeaders true, // isUseCredentials true, // areAllOriginsAllowed [], // allowedOrigins true, // areAllMethodsAllowed [], // allowedLcMethods 'GET, POST, PUT, PATCH, DELETE', // allowedMethodsList true, // areAllHeadersAllowed [], // allowedLcHeaders 'authorization, content-type, x-requested-with', // allowedHeadersList '', // exposedHeadersList true, // isCheckHost ], // PDO 'pdo.dsn' => 'mysql:host=localhost;charset=utf8mb4', 'pdo.username' => 'root', 'pdo.password' => 'root', 'pdo.options' => [ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, ], ];