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

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. When attempting to fetch data from the API, I receive the following errors in the console:

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:

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

Resolved offline. Transitioned to InWorld Simple API.

1 Like

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