0

I'm trying to expose a lightning component with lightning out in a Heroku app. In localhost, I can able to view a lightning component developed in salesforce with lightning out.

But when I try to deploy this app into a Heroku platform this is not working.

It is throwing an error as No 'Access-Control-Allow-Origin' header is present on the requested resource. in the brwoser console

I have whitelisted the localhost and the heroku domain in the CORS and in the CSP Trusted sites.

What should I be missing?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.