mirror of
https://github.com/beetbox/beets.git
synced 2026-02-17 12:56:05 +01:00
changed flask cors import
This commit is contained in:
parent
5606717499
commit
1505ff071d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue