Skip to content

Commit 9226021

Browse files
author
李茂益
committed
允许跨域
1 parent bb6bc76 commit 9226021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

application.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import uuid
44

55
from flask import Flask, request, make_response, render_template, Response, send_from_directory
6-
# from flask_cors import CORS
6+
from flask_cors import CORS
77

88
from generation.gen_ppt_outline import GenBody, GenTitle, GenOutline
99
from mdtree.tree2ppt import Tree2PPT
@@ -25,8 +25,8 @@
2525

2626
app = Flask(__name__)
2727

28-
# # 允许跨域
29-
# CORS(app)
28+
# 允许跨域
29+
CORS(app)
3030

3131

3232
@app.route('/')

0 commit comments

Comments
 (0)