mirror of
https://github.com/beetbox/beets.git
synced 2026-01-19 06:34:05 +01:00
Merge pull request #2980 from rveachkc/2979-beets-web-cors-import
changed flask cors import
This commit is contained in:
commit
54ad0f4160
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