# How to change WebAPI Header in blocks in Thunkable X?

**URL:** https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455
**Category:** Questions about Thunkable X
**Tags:** webapi
**Created:** [May 18, 2018, 7:11am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455 "2018-05-18T07:11:35Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SirBigeur](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SirBigeur](https://community.thunkable.com/u/SirBigeur)
#### Post date: [May 18, 2018, 7:11am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/1 "2018-05-18T07:11:35Z")

</div>

How can i change WebAPI Headers in the block section with Thunkable X ?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 18, 2018, 7:22am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/2 "2018-05-18T07:22:18Z")

</div>

Currently, this is impossible to do.

---

<div class="post-metadata">

### Author: ![SirBigeur](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SirBigeur](https://community.thunkable.com/u/SirBigeur)
#### Post date: [May 18, 2018, 7:24am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/3 "2018-05-18T07:24:40Z")

</div>

There is a way to request the developpers to add this feature ?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 18, 2018, 7:29am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/4 "2018-05-18T07:29:08Z")

</div>

This has already been suggested, but the developers can not fulfill all the requests that they receive. In the Thunkable X [documentation](https://docs.thunkable.com/thunkable-cross-platform/release-notes) you can see here what soon should appear.

---

<div class="post-metadata">

### Author: ![SirBigeur](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SirBigeur](https://community.thunkable.com/u/SirBigeur)
#### Post date: [May 18, 2018, 7:31am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/5 "2018-05-18T07:31:19Z")

</div>

Okay thanks, i will try to do this with an invisible web viewer and some JavaScript then…  
Or JavaScript isn’t enabled too ?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 18, 2018, 7:33am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/6 "2018-05-18T07:33:18Z")

</div>

Javascript in the Web Viewer component works through the data: protocol. Do you understand this or do you need an example?

---

<div class="post-metadata">

### Author: ![SirBigeur](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SirBigeur](https://community.thunkable.com/u/SirBigeur)
#### Post date: [May 18, 2018, 7:37am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/7 "2018-05-18T07:37:48Z")

</div>

If you don’t mind, i 'll like to have an exemple thanks ^^

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 18, 2018, 7:38am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/8 "2018-05-18T07:38:31Z")

</div>

Ok 🙂

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [May 18, 2018, 7:40am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/9 "2018-05-18T07:40:23Z")

</div>

Basic example

![javascript](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/08877d523c0ceefeeae76b75463e932935432ccf.png)

---

<div class="post-metadata">

### Author: ![SirBigeur](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SirBigeur](https://community.thunkable.com/u/SirBigeur)
#### Post date: [May 18, 2018, 7:46am UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/10 "2018-05-18T07:46:15Z")

</div>

Thanks i will work on this ^^  
This shoud do the work pending the SetHeader block.  
If i succeed to make this work i will edit the first post with the code, like that the other users will be able to benefit from it

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:02pm UTC](https://community.thunkable.com/t/how-to-change-webapi-header-in-blocks-in-thunkable-x/27455/11 "2024-11-08T12:02:48Z")

</div>


