If your BASE_URL and STARDOG_EXTERNAL_ENDPOINT are set to two different domains (e.g., stardog.acme.com and stardog-launchpad.acme.com), you may get a CORS error. If you're able to connect to Launchpad but can't get any of the applications to work, check for a message in your browser console like this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource.
This message means your browser is not allowing the page you're currently on to make a request to a different domain (i.e., origin) than the one that served that web page.
To avoid this error, you need to allow both domains with the `cors.allowed.origins` property in stardog.properties. In this case of the domains above, it would be set to:
cors.allowed.origins=http://stardog.acme.com, http://stardog-launchpad.acme.com
If you're using Kubernetes, you can set this property with `additionalStardogProperties` in your values.yaml file.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article