# Unable to run API call in web preview

**URL:** <https://community.thunkable.com/t/unable-to-run-api-call-in-web-preview/2823317>\
**Category:** Questions about Thunkable X\
**Created:** [February 6, 2024, 9:08pm UTC](https://community.thunkable.com/t/unable-to-run-api-call-in-web-preview/2823317 "2024-02-06T21:08:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [February 6, 2024, 9:08pm UTC](https://community.thunkable.com/t/unable-to-run-api-call-in-web-preview/2823317/1 "2024-02-06T21:08:52Z")

</div>

I am trying to run this

 ![2024-02-06 16 56 20](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/a/8a972a1cdb32e4325f13e9ac5aca14cb5b820a24.png)

in the Web Preview but get this error

![2024-02-06 17 00 00](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/ba65365a394e52d068922c3e447b415142fde88f.png)

Is there any reason why I shouldn’t be able to run an API call in the web preview.

Thanks  
Steve

---

<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:** [February 7, 2024, 3:36pm UTC](https://community.thunkable.com/t/unable-to-run-api-call-in-web-preview/2823317/2 "2024-02-07T15:36:36Z")

</div>

Based on that error and the fact that this is only happening in web preview, it sounds like a CORS issue.

> **[CORS Policy](https://docs.thunkable.com/blocks/advanced-app-features/web-api/cors-policy#native-mobile-apps)**

---

<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:** [May 7, 2024, 3:36pm UTC](https://community.thunkable.com/t/unable-to-run-api-call-in-web-preview/2823317/3 "2024-05-07T15:36:48Z")

</div>

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