# BUG: How can I set withCredentials to true in the REST API plugin?

**URL:** <https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397>\
**Category:** How do I?\
**Created:** [November 5, 2022, 5:03am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397 "2022-11-05T05:03:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 5, 2022, 5:03am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/1 "2022-11-05T05:03:38Z")

</div>

How can I set withCredentials to true in the REST API plugin?

The request object from the response is always false. I can’t see an option to change it.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2dc92d5f6f1a7b4237ec6a4806d5a0b691ee3d6e.png)

Plugin code

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/b/bee562524b982575ee550ca120d1046b1f4e9694.png)

I can see the configuration to set it but I can’t find it

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9e6c496899d3485f0a84b2318f818927972bbcec.png)

WeWeb UI - I can’t see a checkbox for isWithCredentials

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/8558ff0c4ba3e92f761874cad37ec073b079fbe7.png)

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [November 8, 2022, 10:23am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/2 "2022-11-08T10:23:51Z")

</div>

Hi @tjmcdonough,

It’s because this feature is currently in QA, it should be released soon. 🙂

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 9, 2022, 6:47am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/3 "2022-11-09T06:47:33Z")

</div>

Ah ok. I am blocked as an API I am using requires withCredentials set to true. Any chance you could push this through today? Or is there a workaround in the mean time?

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 11, 2022, 1:57pm UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/4 "2022-11-11T13:57:59Z")

</div>

@Alexis Any update on this?

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 14, 2022, 8:09am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/5 "2022-11-14T08:09:29Z")

</div>

Hey Alexis,  
Is there an update on this? Could you push through QA today? The last update to this GitHub repo was 26 days ago.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [November 14, 2022, 10:05am UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/6 "2022-11-14T10:05:31Z")

</div>

Hey @tjmcdonough,

We are meeting for this QA tomorrow, so it should be released on Wednesday max 🤞

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 16, 2022, 2:54pm UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/7 "2022-11-16T14:54:31Z")

</div>

@Quentin Any luck on it launching today?

---

<div class="post-metadata">

**Author:** ![forgelab](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/forgelab/32/9671_2.png) [@forgelab](https://community.weweb.io/u/forgelab)\
**Post date:** [November 16, 2022, 8:43pm UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/8 "2022-11-16T20:43:46Z")

</div>

@tjmcdonough not sure if this helps in your case, but we setup a javascript workflow to fire before api call is made to set withCredentials true for us.

![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/57358e4d3ccbda641002217f4b533f1664895d64.png)

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 17, 2022, 2:24pm UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/9 "2022-11-17T14:24:21Z")

</div>

Good hack! Thank you. Will do this for now

---

<div class="post-metadata">

**Author:** ![tjmcdonough](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tjmcdonough](https://community.weweb.io/u/tjmcdonough)\
**Post date:** [November 22, 2022, 5:09pm UTC](https://community.weweb.io/t/bug-how-can-i-set-withcredentials-to-true-in-the-rest-api-plugin/1397/10 "2022-11-22T17:09:50Z")

</div>

@Quentin Any update on a release?
