返回提交历史
Modified
g4f/api/__init__.py
+2
-1
XFEstudio/gpt4free
Fix cors
659a780f
代码差异
1 个文件
+2
-1
@@ -115,10 +115,11 @@ def create_app():
115
115
# Add CORS middleware
116
116
app.add_middleware(
117
117
CORSMiddleware,
118
allow_origin_regex=".*",
118
allow_origin=["*"],
119
119
allow_credentials=True,
120
120
allow_methods=["*"],
121
121
allow_headers=["*"],
122
expose_headers=["*"],
122
123
)
123
124
124
125
api = Api(app)