# \[Solved\] Web viewer not loading new URL

**URL:** <https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796>\
**Category:** Questions about Thunkable X\
**Created:** [July 22, 2023, 4:20pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796 "2023-07-22T16:20:33Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [July 22, 2023, 4:20pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/1 "2023-07-22T16:20:33Z")

</div>

Hi, I set a web viewer to an initial URL. For the sake of testing I set it to [https://www.bing.com/](https://www.bing.com/). Then, when the page starts, I set the URL again using the Blocks to [https://www.google.com/](https://www.google.com/). The problem is that the web viewer still shows the initial URL of [https://www.bing.com/](https://www.bing.com/). I set one of the labels to the URL and I can indeed see that that the web viewer’s URL has changed to [https://www.google.com/](https://www.google.com/). I tried even to call the webviewer’s reload. However, it still only shows me Bing site and not Google site.

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [July 22, 2023, 4:51pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/3 "2023-07-22T16:51:37Z")

</div>

![Screenshot 2023-07-22 at 17.44.19](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c6db928d3861b32d36c29c7aa990b72bd411a5c.png)  
 ![Screenshot 2023-07-22 at 17.50.27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/a/3a8590f95d3637a0c8174eaa5a310cce3514def4.png)

Here is the images of the code…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 22, 2023, 4:52pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/4 "2023-07-22T16:52:09Z")

</div>

Can you share a link to your project?

How are you testing the project? In a browser? On a mobile device using Thunkable Live? Which device?

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [July 22, 2023, 4:59pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/5 "2023-07-22T16:59:19Z")

</div>

it’s a private project: [Thunkable](https://x.thunkable.com/projects/6442c6331cb5c1063641a896/6940e22f-9896-4de3-a4ee-5704a9449606/designer).

I am testing it on an android device using Thunkable app. The same happens when testing it using preview on web app.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 22, 2023, 10:23pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/6 "2023-07-22T22:23:38Z")

</div>

_removed_

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [July 22, 2023, 10:52pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/7 "2023-07-22T22:52:11Z")

</div>

Sorry, I am not sure if your answer is related to my question, or perhaps I misunderstand it…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 23, 2023, 2:34am UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/8 "2023-07-23T02:34:51Z")

</div>

I’m so sorry! I posted a response to another post here by mistake. Sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 23, 2023, 2:37am UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/9 "2023-07-23T02:37:59Z")

</div>

I’m not able to open that link. Do you mind sharing a new link?

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [August 11, 2023, 4:14pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/10 "2023-08-11T16:14:56Z")

</div>

Hi 20 days later i am still stuck on this issue. Here is a link: [Thunkable](https://x.thunkable.com/projects/64d65d9bc78e85912a7b9da4/1bc52c8c-6537-4a55-b149-4332822dc54c/designer)

Could you please help me? I am trying to change dynamically the web viewer URL when the screen opens from [https://www.bing.com/](https://www.bing.com/) to [https://www.google.com/](https://www.google.com/). (just as a test).

However, it does not change.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 11, 2023, 4:40pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/11 "2023-08-11T16:40:04Z")

</div>

I think there was something corrupt in the blocks you had.

I replaced them with basically the same thing and it now switches to Google in Thunkable Live (it fails in a browser preview).

[https://x.thunkable.com/copy/b0d8b4f5184baca9eb787667e789b873](https://x.thunkable.com/copy/b0d8b4f5184baca9eb787667e789b873)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9bd7b0c642a98c953430b26b26c9ccce4a2d4432.png)

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [August 11, 2023, 4:59pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/12 "2023-08-11T16:59:28Z")

</div>

Hi @tatiang , thank you for looking at this. I still don’t know what’s the matter, but I copied your project and when I test it I get " **[www.google.com](http://www.google.com)** refused to connect." While un my original project I still don’t manage to get it working for some reason.

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 11, 2023, 5:06pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/13 "2023-08-11T17:06:44Z")

</div>

@tatiang @royrosemarin I’m sorry I did not see this earlier. For the issue where you are getting [www.google.com](http://www.google.com) refusing to connect. That is a CORS (_cross-origin resource sharing_) issue. Basically, Google and many other websites will stop components like a webviewer from viewing their sites across multiple servers.

> **[What is the CORS policy affecting my web app? | Thunkable Help Center](https://intercom.help/thunkable/en/articles/4515338-what-is-the-cors-policy-affecting-my-web-app)**
>
> If you are having difficulties using a Web API in your web app, this article explains a possible cause: the CORS issue

---

<div class="post-metadata">

**Author:** ![royrosemarin](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@royrosemarin](https://community.thunkable.com/u/royrosemarin)\
**Post date:** [August 11, 2023, 5:11pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/14 "2023-08-11T17:11:10Z")

</div>

OK, thank you @matt_conroy and @tatiang . I’ve now managed to get the same CORS response in my original project. This is very strange, becuase I only created this project as a toy example to show how my webviewer URL does not change in my other private project. Then, it did not change for me in the toy example, until you just recreated the blocks and then it worked. Anyway, at least it is working now, so thank you both!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [November 9, 2023, 5:11pm UTC](https://community.thunkable.com/t/solved-web-viewer-not-loading-new-url/2515796/15 "2023-11-09T17:11:23Z")

</div>

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