# Issue with Key permission

**URL:** <https://pdfjs.community/t/issue-with-key-permission/1761>\
**Category:** Technical Support\
**Created:** [June 9, 2022, 5:55pm UTC](https://pdfjs.community/t/issue-with-key-permission/1761 "2022-06-09T17:55:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaki.developermode](https://avatars.discourse-cdn.com/v4/letter/z/a5b964/32.png) [@zaki.developermode](https://pdfjs.community/u/zaki.developermode)\
**Post date:** [June 9, 2022, 5:55pm UTC](https://pdfjs.community/t/issue-with-key-permission/1761/1 "2022-06-09T17:55:14Z")

</div>

**Which product are you using?**

**PDF.js Express Version**

**Detailed description of issue**  
I have developed my pdf on my subdomain: [dev.qtoexpert.com](http://dev.qtoexpert.com) and when I moved it to main domain: [https://www.qtoexpert.com](https://www.qtoexpert.com) it is not working, It gives cross permission error in console. Can you check?  
**Expected behaviour**  
{Provide a screenshot or description of the expected behaviour}

**Does your issue happen with every document, or just one?**  
Just one

**Link to document**  
{[Provide a link to the document in question if possible]}  
[https://qtoexpert.com/pdfs\_projects/3282/?v=d71bdd22c8bb](https://qtoexpert.com/pdfs_projects/3282/?v=d71bdd22c8bb)

**Code snippet**  
{Provide a relevant code snippet}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [June 9, 2022, 5:55pm UTC](https://pdfjs.community/t/issue-with-key-permission/1761/3 "2022-06-09T17:55:19Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Adding your license key](https://pdfjs.express/documentation/get-started-viewer/add-license-key)
- [Annotation permissions - Default behavior](https://pdfjs.express/documentation/annotation/annotation-permissions#default-behavior)
- [Migrating from PDF.js Express to PDFTron - 3. Change initiation](https://pdfjs.express/documentation/learn-more/pdfjs-express-to-pdftron.8#3.-change-initiation)

APIs:
- [Core - preloadPDFWorker(pdfBackendType, workerHandlers)](https://pdfjs.express/api/Core.html#.preloadPDFWorker__anchor)
- [Development](https://pdfjs.express/api/utils/index.html#__anchor)
- [UI.Hotkeys - on(key [, handler])](https://pdfjs.express/api/UI.Hotkeys.html#.on__anchor)

Forums:
- [Cannot generate key for .gov.mv domains](https://pdfjs.community/t/cannot-generate-key-for-gov-mv-domains/1399/1)
- [Save PDF in ours servers](https://pdfjs.community/t/save-pdf-in-ours-servers/1154/1)
- [Annotation goes non responsive(View only) if left still for a week](https://pdfjs.community/t/annotation-goes-non-responsive-view-only-if-left-still-for-a-week/573/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [June 14, 2022, 5:28pm UTC](https://pdfjs.community/t/issue-with-key-permission/1761/4 "2022-06-14T17:28:07Z")

</div>

Hi there,

The error you are seeing is not related to your license key but is related to how you set up [PDFJS.Express](http://PDFJS.Express).

It seems like you are loading the static resources cross origin which causes issues when loading Express. Please see [this guide](https://pdfjs.express/documentation/learn-more/cors) for more information on how to set up cross origin assets.

Thanks!  
Logan
