# CORS Policy Error and 504 Gateway Timeout with 8thwall OpenAI Module

**URL:** https://forum.8thwall.com/t/cors-policy-error-and-504-gateway-timeout-with-8thwall-openai-module/3650
**Category:** Technical Support
**Tags:** openai
**Created:** [November 20, 2024, 2:59am UTC](https://forum.8thwall.com/t/cors-policy-error-and-504-gateway-timeout-with-8thwall-openai-module/3650 "2024-11-20T02:59:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![heo\_junhyeok](https://avatars.discourse-cdn.com/v4/letter/h/f19dbf/32.png) [@heo\_junhyeok](https://forum.8thwall.com/u/heo_junhyeok)
#### Post date: [November 20, 2024, 2:59am UTC](https://forum.8thwall.com/t/cors-policy-error-and-504-gateway-timeout-with-8thwall-openai-module/3650/1 "2024-11-20T02:59:04Z")

</div>

Hello everyone,

I’m encountering an issue while integrating the OpenAI module with 8thwall. This issue can be confirmed in the example at [A-Frame: GenAI powered by OpenAI | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/openai-aframe). When attempting to fetch data from the API, I receive the following errors in the console:

```auto
Access to fetch at 'https://vvpi8xs1a3.execute-api.us-west-2.amazonaws.com/production/production/Aom7Cyj_w3GtZhUCjoTaPxND2lGlhfebfFg_rgarZTA' from origin 'https://8thwall.8thwall.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

```

Additionally, I see a network error:

```auto
POST https://vvpi8xs1a3.execute-api.us-west-2.amazonaws.com/production/production/Aom7Cyj_w3GtZhUCjoTaPxND2lGlhfebfFg_rgarZTA net::ERR_FAILED 504 (Gateway Timeout)

```

> **[A-Frame: GenAI powered by OpenAI | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/openai-aframe)**
>
> Harness the power of OpenAI’s DALL·E and ChatGPT for image generation and AI-powered text chat

---

<div class="post-metadata">

### Author: ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)
#### Post date: [November 20, 2024, 7:27pm UTC](https://forum.8thwall.com/t/cors-policy-error-and-504-gateway-timeout-with-8thwall-openai-module/3650/2 "2024-11-20T19:27:40Z")

</div>

Resolved offline. Transitioned to [InWorld Simple API.](https://docs.inworld.ai/docs/tutorial-api/)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex019/uploads/x8thwall/original/2X/9/9212a857458f1b03a6accb129e0f8cbea408e3e5.png) [@system](https://forum.8thwall.com/u/system)
#### Post date: [November 24, 2024, 7:28pm UTC](https://forum.8thwall.com/t/cors-policy-error-and-504-gateway-timeout-with-8thwall-openai-module/3650/3 "2024-11-24T19:28:19Z")

</div>

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