changed flask cors import

This commit is contained in:
Ryan Veach 2018-07-10 10:32:21 -05:00
parent 5606717499
commit 1505ff071d

View file

@ -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)}