I am running Azure with Blob Storage. I created credentials for my domain and my subdomain. My subdomain is the blob storage. No matter which credential I use I get the error "File Preview Not Available"
Looks like file location (https://cookbooks.vintagecooking.live/pdf/test.pdf) which you have provided in the code snippet is not reachable. If for a valid file location you keep getting the error then please do let us know. Thanks.
Thank you for the reply. I believe I figured out the solution. https://cookbooks.vintagecooking.live was a blob container I created in Azure to hold my files. I don't think Document SDK recognizes subdomains. Because for testing purposes, I created this http://vintagecooking.live/test.html and it works fine.
Thanks for the update, its good to know that it worked for you. SDK do recongnizes subdomains but browser do put some restrictions while downloading file content, for example around CORS means if file serving domain is different from where it is used then CORS need to be enabled while serving the file.