🐛 修复接口上传header增加token后请求失败的bug
This commit is contained in:
+3
-1
@@ -17,6 +17,8 @@ Route::view('compatibility', 'index@tpl/compatibility');
|
||||
Route::group('api', function () {
|
||||
Route::post('token', 'api/Token/index');
|
||||
Route::post('upload', 'api/Upload/index');
|
||||
})->allowCrossDomain();
|
||||
})
|
||||
->header('Access-Control-Allow-Headers', 'Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With, Token')
|
||||
->allowCrossDomain();
|
||||
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user