# Node Red Custom Token issue

**URL:** <https://discourse.nodered.org/t/node-red-custom-token-issue/79368>\
**Category:** General\
**Created:** [23 June 2023 12:23 UTC](https://discourse.nodered.org/t/node-red-custom-token-issue/79368 "2023-06-23T12:23:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arzooshah](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@arzooshah](https://discourse.nodered.org/u/arzooshah)\
**Post date:** [23 June 2023 12:23 UTC](https://discourse.nodered.org/t/node-red-custom-token-issue/79368/1 "2023-06-23T12:23:57Z")

</div>

We have successfully integrated and launched the Node-RED application as an embedded component within our existing system using an iframe. However, we encountered an issue where all the child requests are being denied due to unauthorized access.

Here is an improved version of the provided code:

htmlCopy code

```auto
<iframe id="pwi_smv_app_iframe" name="pwi_smv_app_iframe" frameborder="0"
  src="${baseUri}/api/nginx/api/ui/?jwt=${window.localStorage.getItem('credentials')}"
  style="width: 100%; height: calc(100vh - 101px); position: fixed;"></iframe>

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e72c0829b7d7b9d8ef5a0d615d15b6642a9e78d6.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79b9b2c230e4f5110f81cb3b4fc9df1e836041f2.png)

it seems that the child requests are failing because the authentication token is not being set for the Node-RED resources.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d120bf4ea1b28d3cdb5849d87d0ccdea566f6f63.png)

Please let me know the solution.

---

<div class="post-metadata">

**Author:** ![arzooshah](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@arzooshah](https://discourse.nodered.org/u/arzooshah)\
**Post date:** [26 June 2023 10:27 UTC](https://discourse.nodered.org/t/node-red-custom-token-issue/79368/2 "2023-06-26T10:27:19Z")

</div>

Please check this issue asap..

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 August 2023 10:28 UTC](https://discourse.nodered.org/t/node-red-custom-token-issue/79368/3 "2023-08-25T10:28:19Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
