# Cors issue on pdfexpress

**URL:** <https://pdfjs.community/t/cors-issue-on-pdfexpress/2721>\
**Category:** Technical Support\
**Created:** [July 18, 2023, 2:28pm UTC](https://pdfjs.community/t/cors-issue-on-pdfexpress/2721 "2023-07-18T14:28:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@greg](https://pdfjs.community/u/greg)\
**Post date:** [July 18, 2023, 2:28pm UTC](https://pdfjs.community/t/cors-issue-on-pdfexpress/2721/1 "2023-07-18T14:28:32Z")

</div>

Access to fetch at ‘[https://api.pdfjs.express/xfdf/merge](https://api.pdfjs.express/xfdf/merge)’ from origin ‘[domain)’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

getting this error

// Process the file  
const response = await fetch(‘[https://api.pdfjs.express/xfdf/merge](https://api.pdfjs.express/xfdf/merge)’, {  
mode: ‘cors’,  
method: ‘post’,  
body: data  
}).then(resp =\> resp.json());  
const { url, key, id } = response;  
console.log(url)  
const mergedFileBlob = await fetch(url, {  
headers: {  
Authorization: key  
}  
}).then(resp =\> resp.blob())

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [July 18, 2023, 3:26pm UTC](https://pdfjs.community/t/cors-issue-on-pdfexpress/2721/3 "2023-07-18T15:26:56Z")

</div>

Hello greg,

We have found the source of the issue and it has been resolved. Thank you for your patience!

Best regards,  
Tyler
