mirror of
https://github.com/Suxiaoqinx/Netease_url.git
synced 2025-07-14 05:12:21 +08:00
commit
ccae60b7d7
6
main.py
6
main.py
@ -123,6 +123,12 @@ def lyric_v1(id, cookies):
|
|||||||
|
|
||||||
# Flask 应用部分
|
# Flask 应用部分
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
@app.after_request
|
||||||
|
def after_request(response):
|
||||||
|
response.headers.add('Access-Control-Allow-Origin', '*')
|
||||||
|
response.headers.add('Access-Control-Allow-Headers', 'Content-Type,Authorization')
|
||||||
|
response.headers.add('Access-Control-Allow-Methods', 'GET,POST,OPTIONS')
|
||||||
|
return response
|
||||||
|
|
||||||
@app.route('/', methods=['GET', 'POST'])
|
@app.route('/', methods=['GET', 'POST'])
|
||||||
def index():
|
def index():
|
||||||
|
Loading…
Reference in New Issue
Block a user