You need to sign in to do that
Don't have an account?
Bakul Patel 39
lightning out gives "No 'Access-Control-Allow-Origin' header is present on the requested resource" error even after whitelisting the domain in cors
I have a lightning web component. I need to use it in external website. I followed the steps given in salesforce help page. I have whitelisted the website into which I need my lwc to be added, in CORS. Still on loading the website I am getting "No 'Access-Control-Allow-Origin' header is present on the requested resource". Issue is in sandbox. Any help is appreciated.
Try the suggestions as mentioned in the below article,
https://help.salesforce.com/articleView?id=000334858&type=1&mode=1
For your reference, you can check the below blog too,
https://help.salesforce.com/articleView?id=extend_code_cors.htm&type=5
Thanks.