I want to load an script (A react bundle file) in an aura component, and the script work correctly in the aura component. After that, I create a Visualforce page to add the aura component to it by using:
$Lightning.use("c:AuraApp", function() {
$Lightning.createComponent(
"c:AuraComponent",
{},
"root",
function(cmp) {
console.log("Lightning Aura Component is Loaded...");
}
);
});
But when I open the visualforce page, it return the error an ancestor violates the following Content Security Policy directive: "frame-ancestors". Can you help me to resolve this problem? Here is my reference about my work:
https://blog.shubhamlashkan.com/how-to-use-aura-component-in-visualforce-page
Thank you so much.