I am unable to append iframe in my localhost.
error:-Refused to frame ‘https://us-west-2.quicksight.aws.amazon.com/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors http://localhost”.
I have added this domain in quicksight also.
index.html file:-
Basic Embed const embedDashboard = async () => { const { createEmbeddingContext, } = QuickSightEmbedding; const embeddingContext = await createEmbeddingContext();
const containerDiv = document.getElementById("embedding-container");
const frameOptions = {
// replace the value below with the one generated via embedding API
url:"",
container: containerDiv,
height: "700px",
width: "1000px",
};
const contentOptions = {
toolbarOptions: {
export: false,
undoRedo: false, // use this option to show or hide the undo and redo buttons
reset: false, // use this option to show or hide the reset button
},
attributionOptions: {
overlayContent: false,
},
};
const embeddedDashboard = await embeddingContext.embedDashboard(frameOptions, contentOptions);
};
</script>