# Embed your app in a webpage and APIs

**URL:** https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506
**Category:** Questions about Thunkable X
**Created:** [September 11, 2023, 5:00pm UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506 "2023-09-11T17:00:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [September 11, 2023, 5:00pm UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506/1 "2023-09-11T17:00:10Z")

</div>

Hello,  
My app STRUL is working fine in real life but not when embedded in a webpage.  
The ducmentation says that Admob Banner should work (Som other are not)  
And it says nothing about feching data from APIS not working

The apps is embedded here - Expected behavior is various information when clicking the colorful buttons that represents problems (Strul) in the cummuter trafic.  
Probably Silly and Simple …but… Any ideas… ??

See the app here…

> **[STRUL - i kollektivtrafiken igen?](https://strul.info/)**
>
> Bara genom att öppna appen STRUL får användaren en störningsinformation för Tunnelbana, Bussar, Pendeltåg och Spårtrafiken i Stockholm

---

<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: [September 11, 2023, 6:01pm UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506/2 "2023-09-11T18:01:32Z")

</div>

Hi @stefansladdeneng1, please see this article about CORS and your web API, that is the cause of what is happening here.

> **[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

When I open your webpage, there are errors in the console about CORS.  
 ![Screenshot 2023-09-11 at 2.00.32 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/532e39c9fd6ea993edfb41b2f303d293387b5ac9.png)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [September 12, 2023, 11:38am UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506/3 "2023-09-12T11:38:38Z")

</div>

But dude. This has been an issue for a long time. Are there plans to fix this. No other webapp builders published webapps have this issue going on.

---

<div class="post-metadata">

### Author: ![stefansladdeneng1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/stefansladdeneng1/32/170123_2.png) [@stefansladdeneng1](https://community.thunkable.com/u/stefansladdeneng1)
#### Post date: [September 12, 2023, 2:12pm UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506/4 "2023-09-12T14:12:49Z")

</div>

I got some instrux from my Host provider to change the htcaccess file in the root foler. But they also said "i might need to update the instructions with the filetypes needed.  
So What file types might this be for The API and for the Banner in Admob to work…?

The instructions i’ve got is the following  
“\<FilesMatch “.( **ttf|otf|eot|woff|woff2|js** )$”\>  
  
Header set Access-Control-Allow-Origin “\*”  
Header set Access-Control-Allow-Headers “Accept, X-Requested-With”  
  
”  
My guess is that it is additional filetypes needed (see the bold)  
What do you suggest??

@matt_conroy Any ideas…?

@tatiang @ioannis perhaps you know the answer…??

---

<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: [December 11, 2023, 2:13pm UTC](https://community.thunkable.com/t/embed-your-app-in-a-webpage-and-apis/2589506/5 "2023-12-11T14:13:28Z")

</div>

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