Open fuzengyao opened 4 years ago
$form->ckeditor('description')->options([
'filebrowserImageUploadUrl' => config('admin.extensions.ckeditor.config.filebrowserImageUploadUrl').'?_token='.csrf_token(),
]);
你需要把common/image/upload 这个路由在 app/Http/Middleware/VerifyCsrfToken 中的 $except 变量中添加 protected $except = [ '/common/image/upload' ]; 以关闭csrftoken校验
1、版本号: "encore/laravel-admin": "^1.7" "laravel-admin-ext/ckeditor": "^1.0"
异常出现了419报错![image](https://user-images.githubusercontent.com/24694539/64242131-90bd8080-cf37-11e9-96aa-4b824df747b1.png)