|
|
@@ -16,7 +16,8 @@ def create_app():
|
|
|
], # 明确允许你的前端域名
|
|
|
supports_credentials=True, # 允许携带Cookie等凭证
|
|
|
methods=['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'], # 允许的HTTP方法
|
|
|
- allow_headers=['Content-Type', 'Authorization'], # 允许的请求头
|
|
|
+ #allow_headers=['Content-Type', 'Authorization','userurl'], # 允许的请求头
|
|
|
+ allow_headers='*', # 允许的请求头
|
|
|
expose_headers=None, # 允许浏览器访问的响应头
|
|
|
max_age=600) # 预检请求缓存时间(秒)
|
|
|
|