feat(legacy): remove db allowed_cors_origins preference (#2095)

- Remove after deprecation in eb8e7b3415
This commit is contained in:
Jonas L 2022-10-11 13:38:31 +02:00 committed by GitHub
parent e54c8d22e1
commit cff98f2d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 60 deletions

View file

@ -27,27 +27,6 @@ class CORSHelper
*/
public static function getAllowedOrigins($request)
{
$config = Config::getConfig();
return array_merge(
$config['allowedCorsOrigins'],
self::getDatabaseAllowedOrigins()
);
}
/**
* Get database allowed origins.
*
* @return array
*/
private static function getDatabaseAllowedOrigins()
{
return array_map(
'trim',
explode(
PHP_EOL,
Application_Model_Preference::GetAllowedCorsUrls()
)
);
return Config::get('general.allowed_cors_origins');
}
}