I am trying to access embedded charts in metabse which I am pretty much successful in doing. But the thing is that when I access it from iframe then I can only access it in the Mozilla browser. It doesn’t let me do the same with the chrome browser.
Is it a cross-origin issue? if yes how can it be rectified?
Hi @druidMetabase
Please post “Diagnostic Info” from Admin > Troubleshooting.
Check your browser developer console for warnings/errors. Most browsers are fairly strict about embedding an iframe from a file:// reference.
@flamber I checked my developer console, it displayed me this error
"Refused to frame 'http://localhost:3000/’ because an ancestor violates the following Content Security Policy directive: “frame-ancestors *”.
Please let me know what are your thoughts on this?
@druidMetabase
Post “Diagnostic Info” from Admin > Troubleshooting.
Which domains have you defined in Admin > Settings > Embedding ?
Most modern browsers does not allow interaction with file://, and http://localhost also has some restrictions.
everything works through firefox, but through chrome I get the error Refused to frame 'https://meta.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors *".
Post “Diagnostic Info” from Admin > Troubleshooting.
Most modern browsers does not allow interaction with file:// , and http://localhost also has some restrictions. And since you're trying to iframe a https-source, then locally generally also needs to be https.
@adddvb Yes, you can upload your own config script instead of the official release, which overrides headers via a reverse-proxy (currently Nginx is included, but will likely be removed in version 0.40)