Error CORS - Embed retool SDK

Hi, I'm implementing the JS SDK to embed Retool within my app.
My main app has a domain of ddd.mydomain.app.
The Retool app has a domain of ccc.mydomain.com.

This is causing me CORS issues. What should I do to ensure they're both under the same parent domain?

The simplest solution would be the following:

Subdomain Consolidation:
Modify your domains to be subdomains of the same parent domain
For example, change:
-Main app: ddd.mydomain.app → ddd.mydomain.com
-Retool app: ccc.mydomain.comccc.mydomain.com (already good)

OR

CORS Configuration:
In your Retool application settings, add your main app's domain to the allowed origins
Specifically, you'll want to configure the Access-Control-Allow-Origin header to include your main app's full domain

Welcome to the community, @Desarrollo_API! I'll echo @qandeelcc and recommend that you put both apps on the same domain, unless there's a particular reason you are keeping them separate.

The exact steps for doing this will vary a bit depending on your provider, but you'll generally need to create a new A record for whichever app you want to migrate. You can read about subdomain routing in AWS here. Let us know if you have any questions!

1 Like

Have you had a chance to review this, @Desarrollo_API? Let us know if you have any additional questions!