<filename>todoism/todoism/apis/v1/__init__.py
from flask import Blueprint
from flask_cors import CORS

api_v1 = Blueprint('api_v1', __name__)


CORS(api_v1)  #跨域解决

from todoism.apis.v1 import resources  #避免循环依赖
<filename>todoism/todoism/apis/v1/__init__.py
from flask import Blueprint
from flask_cors import CORS

api_v1 = Blueprint('api_v1', __name__)


CORS(api_v1)  #跨域解决

from todoism.apis.v1 import resources  #避免循环依赖
#跨域解决 #避免循环依赖