# Credentials and Additional Data

During file upload or removal, you can configure whether to send credentials with cross-origin requests, add custom headers, or send additional data.

## Attaching Credentials to Requests

To send credentials with cross-origin upload and remove requests, set the [`withCredentials`](https://www.telerik.com/kendo-vue-ui-develop/components/upload/api/uploadprops#withcredentials) option to `true`. By default, cross-origin requests are sent without credentials. Same-origin requests include browser-managed credentials, such as cookies, by default; `withCredentials` does not affect them.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/upload/credentials/source.txt)

## Attaching Additional Data to Requests

You can also send additional data in the form of key/value pairs and modify the request headers.

Depending on when the data will be sent:

* In the `onBeforeUpload` event handler, update the `additionalData` or `headers` property of the event
* In the `onBeforeRemove` event handler, update the `additionalData` or `headers` property of the event

[Demo Source](https://demos.telerik.com/kendo-vue-ui/upload/additional-data/source.txt)

## Suggested Links

* [API Reference of the Upload](https://www.telerik.com/kendo-vue-ui-develop/components/upload/api/uploadprops)
