> For the complete documentation index, see [llms.txt](https://saba-framework.gitbook.io/saba-framework-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://saba-framework.gitbook.io/saba-framework-documentation/customization/extra-headers.md).

# Extra Headers

Custom Request Headers.

Untuk menambahkan kunci headers pada setiap permintaan data ke backend bisa di konfigurasi seperti contoh ini:

```json
{
  "pageType": "crud",
  "pageTitle": "Mahasiswa",
  "crudOpt": {
    "detailFromGrid": true,
    "endpointName": "https://globaldata-api.insaba.co.id/demoMahasiswa",
    "headersExtra": {
      "key1": "value1",
      "key2": "value2",
      "key3": "value3"
    }
  }
}
```

Maka hasil inspeksi browser pada saat melakukan permintaan ke backend akan seperti ini:

<figure><img src="https://4009479446-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FELbr94H26l2v1l9CCypT%2Fuploads%2FlK16C950Tl7LVb0K8VoJ%2FScreenshot%202023-12-03%20193538.png?alt=media&amp;token=5bff4736-5296-40b5-8893-ebc9def1a211" alt=""><figcaption><p>Custom Request Headers</p></figcaption></figure>

Kamu juga bisa mengkonfigurasi tambahan header spesifik untuk metode request tertentu seperti ini:

```json
{
  "pageType": "crud",
  "pageTitle": "Mahasiswa",
  "crudOpt": {
    "detailFromGrid": false,
    "endpointName": "https://globaldata-api.insaba.co.id/demoMahasiswa",
    "removeDefaultHttpHeader": false,
    "deleteSelection": true,
    "headersExtra_GET": {
      "key1_get": "value1",
      "key2_get": "value2",
      "key3_get": "value3"
    },
    "headersExtra_PUT": {
      "key1_put": "value1",
      "key2_put": "value2",
      "key3_put": "value3"
    },
    "headersExtra_POST": {
      "key1_post": "value1",
      "key2_post": "value2",
      "key3_post": "value3"
    },
    "headersExtra_DELETE": {
      "key1_delete": "value1",
      "key2_delete": "value2",
      "key3_delete": "value3"
    }
  }
}
```
