amazon-a2i-sample-task-uis icon indicating copy to clipboard operation
amazon-a2i-sample-task-uis copied to clipboard

Embedding pdf in iframe

Open meketadev opened this issue 3 years ago • 1 comments

I am trying to embed a pdf in an iframe as shown in the text sample for document classification. The browser is is displaying a grey image with the text "Requests to the server have been blocked by an extension". I have disabled all extensions and believe this could be fixed by adding: "web_accessible_resources": [ "modal-iframe.html" ],

to the manifest.json. However I do not know where this could be done in the creation of the Human review workflows or task templates.

meketadev avatar May 18 '21 18:05 meketadev

+1: I'm seeing same/similar issue with PDFs failing to display - but seems to be browser-specific as Firefox users are OK but Chrome blocks it.

For me the error (in Chrome) looks a little different to the description above: "This page has been blocked by Chrome" - but I imagine the underlying cause is the same:

image

I wasn't able to find much info from devtools in the labelling view as to why the resource was blocked, but I see that the template as a whole is loaded in an <iframe sandbox="allow-scripts" referrerpolicy="no-referrer">: So not sure how this could be worked around?

athewsey avatar Sep 08 '21 07:09 athewsey