This commit is contained in:
Hankin 2025-08-06 16:29:46 +08:00
parent 63751fb3f7
commit 12661b411b

View File

@ -49,9 +49,10 @@ class CommonController extends Controller
$config = config('UEditorUpload.upload'); $config = config('UEditorUpload.upload');
switch ($action) { switch ($action) {
case 'config': case 'config':
return Response()->json($config) // return Response()->json($config)
->header('Access-Control-Allow-Headers', '*') // ->header('Access-Control-Allow-Headers', '*')
->setCallback(request()->input('callback')); // ->setCallback(request()->input('callback'));
return Response()->json($config);
//->header("Content-Type", "text/html; charset=utf-8"); //->header("Content-Type", "text/html; charset=utf-8");
case 'uploadimage': case 'uploadimage':
$upload_config = array( $upload_config = array(