zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

Setting multiple headers #34

Closed justfathi closed 7 years ago

nileshyadav326 commented 7 years ago

use like below.

this.dtOptions = {
            ajax: {
                url: 'http://localhost:8000/inventory/list',
                method: 'POST',
                headers: {
                "My-First-Header":"first value",
                "My-Second-Header":"second value"
            }
            },
            columns: [{
                title: 'ID',
                data: 'id'
            }, {
                title: 'Name',
                data: 'inventory_name'
            }, {
                title: 'Price',
                data: 'inventory_price'
            }]
}