# \[Hosted web app\] Cookies do not set in Request Header

**URL:** <https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204>\
**Category:** Web App Development\
**Created:** [October 3, 2024, 12:02pm UTC](https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204 "2024-10-03T12:02:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlutonIsa](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@PlutonIsa](https://forum.webostv.developer.lge.com/u/PlutonIsa)\
**Post date:** [October 3, 2024, 12:02pm UTC](https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204/1 "2024-10-03T12:02:32Z")

</div>

I developed a packaged app for installation on webOS 4.x TV and encountered a login issue, which I believe is due to limited cookie support on packaged apps, with full support available only for hosted apps. To address this, I redeployed the app as a hosted application by setting up URL redirection following LG’s official documentation. Unfortunately, the issue persists.

As shown in the screenshots below, the initial POST request for login executes successfully, and cookies are correctly stored in the browser’s Application tab. However, in subsequent GET requests, the cookies are not automatically included in the request headers, despite the app and backend being hosted under the same origin.

This problem does not occur on newer LG TVs running webOS 6.0 and above. I can only insert 1 image in this post so I combined 5 pics in vertical order Cookies in Application tab \> Login request \> GET request. I would highly appreciate any insights or solutions you could offer to help resolve this issue. Thank you!

 ![cookie-login-GET](https://canada1.discourse-cdn.com/flex030/uploads/webostv/original/1X/9cbf9d8ae5af32e9d13b05620d26b515fd1a77e1.jpeg)

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [October 4, 2024, 12:09am UTC](https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204/2 "2024-10-04T00:09:16Z")

</div>

Please set [credentials](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials) to `same-origin`. The default credentials mode changed from `omit` to `same-origin` since Chrome 72. And webOS TV 4.x uses Chromium 53 and webOS TV 6.x uses Chromium 79. Thank you.

---

<div class="post-metadata">

**Author:** ![PlutonIsa](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@PlutonIsa](https://forum.webostv.developer.lge.com/u/PlutonIsa)\
**Post date:** [October 4, 2024, 8:38am UTC](https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204/3 "2024-10-04T08:38:06Z")

</div>

Awesome! it’s working now. Thank you so much for your help.

---

<div class="post-metadata">

**Author:** ![user2800](https://avatars.discourse-cdn.com/v4/letter/u/45deac/32.png) [@user2800](https://forum.webostv.developer.lge.com/u/user2800)\
**Post date:** [June 30, 2026, 11:47pm UTC](https://forum.webostv.developer.lge.com/t/hosted-web-app-cookies-do-not-set-in-request-header/10204/4 "2026-06-30T23:47:54Z")

</div>

This often happens because of cookie attributes rather than the request itself. Double-check that `SameSite=None` is paired with `Secure`, the cookie domain and path match your hosted environment, and CORS is configured to allow credentials. The **[web app development services](https://www.cleveroad.com/services/web-application-development-services/)** approach also emphasizes validating deployment-specific authentication and cookie settings. These checks usually resolve the problem.
