amazon-a2i-sample-task-uis
amazon-a2i-sample-task-uis copied to clipboard
Embedding pdf in iframe
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.
+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:
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?