PDF Viewer Not Displaying on Published Website
I am trying to use the PDF Viewer for the first time on one of our sites. I've followed the steps from https://experienceleague.adobe.com/docs/experience-manager-core-components/using/components/pdf-viewer.html?lang=en. I also configured the sling:configs nodes under /conf on author and publish using the appropriate clientId with the one on publish being the one for the domain of the published site.
Everything seems to work fine on author and I'm able to successfully embed a PDF on the page. However on the published site, the PDF doesn't display at all. Viewing the page source shows that there is only an empty div there of class "pdfviewer section". If I view the page directly on the publish server, it displays the pdf viewer. This makes me feel like I've replicated everything to publish correctly. I do get the "File preview not available" message because the domain of our publish server is different that the domain of the published site. If I view the page source on publisher and copy the generated code from the pdfviewer div into the source on the published site using the Inspector, the PDF displays fine.
This makes me believe that there is a dispatcher setting or something like that that is causing the PDF to not show up on the published page. I don't see any errors in the log files on publisher. I'm sure it's some little something that I'm missing, but I just can't seem to figure out this missing piece. Does anyone know what setting (or settings) I need to check or anything else I can try to figure out why it's not working on the published site. Any help would be appreciated.
We are on AEM 6.5 and using IIS.
Thanks!
