You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back-end: Laravel with Tus.io and Sanctum for authentication Description:
Everything works with tus-js-client.
With vue-file-agent, everything work well when not using authentication, but when using authentication, the cookie (XSRF-TOKEN) is not added to the request. So then back-end return a "CSRF token mismatch." error.
My vue-agent-component:
<VueFileAgent
ref="vueFileAgent"
:theme="'grid'"
:multiple="true"
:deletable="true"
:meta="true"
:resumable="true"
:maxFiles="14"
:headers="headers"
:uploadWithCredentials="true"
:helpText="'Choose images or zip files'"
:errorText="{
type: 'Invalid file type. Only images or zip Allowed',
size: 'Files should not exceed 10MB in size'
}"
@select="filesSelected($event)"
@beforedelete="onBeforeDelete($event)"
@delete="fileDeleted($event)"
v-model="fileRecords"
></VueFileAgent>
Back-end: Laravel with Tus.io and Sanctum for authentication
Description:
Everything works with tus-js-client.
With vue-file-agent, everything work well when not using authentication, but when using authentication, the cookie (XSRF-TOKEN) is not added to the request. So then back-end return a "CSRF token mismatch." error.
My vue-agent-component:
Headers:
Function getCookieValue:
Versions:
"tus-js-client": "^2.3.1",
"vue-file-agent": "^1.7.3",
The text was updated successfully, but these errors were encountered: