feat(legacy): remove db allowed_cors_origins preference (#2095)
- Remove after deprecation in eb8e7b3415
This commit is contained in:
parent
e54c8d22e1
commit
cff98f2d23
7 changed files with 28 additions and 60 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue