Embed PDF API Error Message.
Hello,
I am trying to display a PDF online via my website/web domain but can't seem to make it work. I have tried the code shared by Adobe and have also installed a SSL certificate thinking perhaps this was the reason it wasn't working.
Both the index file and PDF file are both at the root level of my directory, and are the only two files in it. As I enter my web address it starts to load the file. It then displays the first page of the PDF file briefly and it is quickly replaced by the following message in a white rectangular box in the middle of the browser window:
"File preview not available
This application domain (https://www.domain.com( is not authorized to use the provided PDF Embed API Client ID."
This is what displays on the JavaScript Console:
Successfuly preconnected to https://use.typekit.net/
Successfuly preconnected to https://p.typekit.net/
Unrecognized Content-Security-Policy directive 'worker-src'.
Origin https://www.domain.com is not allowed by Access-Control-Allow-Origin.
Fetch API cannot load https://viewlicense.adobe.io/viewsdklicense/jwt due to access control checks.
Failed to load resource: Origin https://www.domain.com is not allowed by Access-Control-Allow-Origin.
Can anyone please help? I really need to make this work and have tried just about everything I can think of without any success.
Thank you.
