I want to embed a PDF file into iparams.html using <embed> or <iframe>.
However, I got the issue:
“Failed to load ‘http://localhost:10001/custom_configs/assets/terms.pdf’ as a plugin, because the frame into which the plugin is loading is sandboxed.”
Is this related to some security policy on the Freshdesk side? If I run the HTML on local, it works fine. Though, if I run it with the command “fdk run”, I get the error.
Is there any way to embed the pdf file into iparams.html?
Hi @Nhat_Nguyen,
Good Day,
There is no other possibility to render the PDF directly in Iparams since it is sandboxed,
you can use an alternative way https://mozilla.github.io/pdf.js which it supports PDF rendering in canvas object,
it dosen’t have the same User experience like i.e it does not build a viewer, you have to do it manually if you want the same experience