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

@ -1514,34 +1514,6 @@ class Application_Model_Preference
self::setValue('station_podcast_privacy', $value);
}
/**
* Getter for CORS URLs.
*
* @return string
*/
public static function GetAllowedCorsUrls()
{
return self::getValue('allowed_cors_urls');
}
/**
* Setter for CORS URLs.
*
* @param string $value
*/
public static function SetAllowedCorsUrls($value)
{
// Trim and strip trailing slash for each entry
$value = implode(PHP_EOL, array_map(
function ($v) {
return rtrim(trim($v), '/');
},
explode(PHP_EOL, $value)
));
self::setValue('allowed_cors_urls', $value);
}
/**
* Getter for feature preview mode.
*