I am trying to display PDFs hosted in a static web enabled storage account in an canvas app. When I set the PDF viewer document property to one of the hyperlinks, the viewer remains grey for about 10 seconds, before changing to the "Couldn't open PDF file; open in my browser instead".
The PDFs are accessible publicly/anon and can be downloaded via browser without issue.
Static web is enabled on the account:
PDFs are uploaded to the $web container and have the content type of 'application/pdf'
There are no network restrictions on the storage account:
CORS is not configured/used.
So far I've only found generic information around the pdf viewer - e.g. only HTTPS links are supported, does not support auth or redirects, etc. Nothing specific to static web / storage accounts. Majority of info seems to relate to people hosting PDFs on sharepoint which isn't relevant.
Does anyone know how the storage account should be configured to allow this to work?