Update settings. Move cors settings to config file.