From 1505ff071d8f0af9e6fe5be94763af3c39d67f5e Mon Sep 17 00:00:00 2001 From: Ryan Veach Date: Tue, 10 Jul 2018 10:32:21 -0500 Subject: [PATCH] changed flask cors import --- beetsplug/web/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 3cf43ed56..f53fb3a95 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -383,7 +383,7 @@ class WebPlugin(BeetsPlugin): if self.config['cors']: self._log.info(u'Enabling CORS with origin: {0}', self.config['cors']) - from flask.ext.cors import CORS + from flask_cors import CORS app.config['CORS_ALLOW_HEADERS'] = "Content-Type" app.config['CORS_RESOURCES'] = { r"/*": {"origins": self.config['cors'].get(str)}