Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

419 异常报错 #3

Open
fuzengyao opened this issue Sep 4, 2019 · 2 comments
Open

419 异常报错 #3

fuzengyao opened this issue Sep 4, 2019 · 2 comments

Comments

@fuzengyao
Copy link

1、版本号:
"encore/laravel-admin": "^1.7"
"laravel-admin-ext/ckeditor": "^1.0"

异常出现了419报错
image

@fuzengyao fuzengyao changed the title 419 419 异常报错 Sep 4, 2019
@lilashih
Copy link

$form->ckeditor('description')->options([
            'filebrowserImageUploadUrl' => config('admin.extensions.ckeditor.config.filebrowserImageUploadUrl').'?_token='.csrf_token(),
        ]);

@gy812337967
Copy link

gy812337967 commented Aug 24, 2021

你需要把common/image/upload 这个路由在 app/Http/Middleware/VerifyCsrfToken 中的 $except 变量中添加
protected $except = [
'/common/image/upload'
];
以关闭csrftoken校验

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants