feat: move allowed cors url to configuration file

- don't set cors origins form field as readonly and add deprecation notice.
This commit is contained in:
jo 2022-05-23 17:12:40 +02:00 committed by Kyle Robbertze
parent 510e978952
commit eb8e7b3415
5 changed files with 63 additions and 26 deletions

View file

@ -170,8 +170,8 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
$allowedCorsUrlsValue = Application_Model_Preference::GetAllowedCorsUrls();
$allowedCorsUrls = new Zend_Form_Element_Textarea('allowedCorsUrls');
$allowedCorsUrls->setLabel(_('Allowed CORS URLs'));
$allowedCorsUrls->setDescription(_('Remote URLs that are allowed to access this LibreTime instance in a browser. One URL per line.'));
$allowedCorsUrls->setLabel(_('Allowed CORS URLs (DEPRECATED)'));
$allowedCorsUrls->setDescription(_('Remote URLs that are allowed to access this LibreTime instance in a browser. One URL per line. (DEPRECATED: Allowed CORS origins configuration moved to the configuration file.)'));
$allowedCorsUrls->setValue($allowedCorsUrlsValue);
$this->addElement($allowedCorsUrls);