Copy link to clipboard
Copied
Hi,
I am trying to embed a PDF using PDF Embed API. The PDF URL is generated using "combinedDocument/url" Adobe Sign API. When loading this URL using PDF previewer, I'm getting a CORS error as shown below.
Access to XMLHttpRequest at 'https://adobesign.com/document/cp/document.pdf' from origin 'https://google.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This is my View SDK PDF Preview Code.
previewFile(divId: string, viewerConfig: any) {
const config: any = {
clientId: 'CLIENT_ID',
};
if (divId) { config.divId = divId;}
this.adobeDCView = new window.AdobeDC.View(config);
const previewFilePromise = this.adobeDCView.previewFile({
content: {
location: {
url: 'https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf',
},
},
metaData: {
fileName: 'Bodea Brochure.pdf',
}
}, viewerConfig);
return previewFilePromise;
}
Since the PDF resource is Adobe sign, how to allow my website to access PDF from Adobe Sign Secure URL.
Thanks!!
Copy link to clipboard
Copied
Any updates?
Copy link to clipboard
Copied
Hi Vinay,
Thank you for reaching out and sorry for the delay in response.
We have checked that you are using the Adobe Sign Developer account.
I would request you to get in touch with the pre-sales team in order to check if the Integration settings are enabled for your account. If not, they will help you to enable the integration settings for your account. They will help also help you with technical issues.
You may get in touch with the pre-sales team via the contact us button provided on the following page for Adobe Sign business and enterprise plan: https://acrobat.adobe.com/us/en/sign/pricing/plans.html
Hope the information helps.
Thanks,
Meenakshi