File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class AssetManager
20
20
21
21
function __construct (AssetRepository $ assetRepository )
22
22
{
23
- $ this ->headers ['_token ' ] = csrf_token ();
23
+ $ this ->headers ['X-CSRF-TOKEN ' ] = csrf_token ();
24
24
$ this ->upload = $ assetRepository ->getUploadUrl ();
25
25
$ this ->uploadName = 'file ' ;
26
26
Original file line number Diff line number Diff line change @@ -12,14 +12,11 @@ class StorageManager
12
12
public int $ stepsBeforeSave = 10 ;
13
13
public bool $ autoload = false ;
14
14
public ?string $ urlStore = null ;
15
-
16
- public $ params = [
17
- '_token ' => null
18
- ];
15
+ public array $ headers = [];
19
16
20
17
function __construct ($ save_url = null )
21
18
{
22
- $ this ->params [ ' _token ' ] = csrf_token ();
19
+ $ this ->headers [ ' X-CSRF-TOKEN ' ] = csrf_token ();
23
20
24
21
$ this ->autosave = config ('laravel-grapesjs.storage_manager.autosave ' , true );
25
22
$ this ->stepsBeforeSave = config ('laravel-grapesjs.storage_manager.steps_before_save ' , 10 );
You can’t perform that action at this time.
0 commit comments