Title: Access problem
Last modified: April 3, 2019

---

# Access problem

 *  Resolved [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * (@gottfrieds)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/)
 * I have to give my site [http://mysite.de/subsite](http://mysite.de/subsite) access
   to images.mysite.de
 * I followed your advice setting the paramters for cross origin sharing in the 
   [documentation](https://zinoui.com/blog/http-headers-for-wordpress). But I don’t
   have access.
 * What do I make wrong??? Could you please help?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Dimitar Ivanov](https://wordpress.org/support/users/zinoui/)
 * (@zinoui)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/#post-11393036)
 * It may be CSP instead of CORS issue.
    What’s the actual error message?
 *  Thread Starter [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * (@gottfrieds)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/#post-11393361)
 * This is the error message:
 * Uncaught (in promise) Error: file origin does not match viewer’s
    at validateFileURL(
   app.js:1429) at webViewerInitialized (app.js:1471)
 *  Plugin Author [Dimitar Ivanov](https://wordpress.org/support/users/zinoui/)
 * (@zinoui)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/#post-11394303)
 * It doesn’t looks like an CSP nor an CORS issue.
    Note that the HTTP Headers plugin
   can’t change the origin of a document. So, can’t help if your code has a similar
   check:
 *     ```
       if (fileOrigin !== viewerOrigin) {
           throw new Error('file origin does not match viewer\'s');
       }
       ```
   
 * P.S. If this error comes from the pdf.js library, you may need to add your trusted
   origins to HOSTED_VIEWER_ORIGINS
 *  Thread Starter [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * (@gottfrieds)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/#post-11394620)
 * Thanks for your advice. I will follow the hint.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Access problem’ is closed to new replies.

 * ![](https://ps.w.org/http-headers/assets/icon-128x128.png?rev=1413576)
 * [HTTP Headers](https://wordpress.org/plugins/http-headers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/http-headers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/http-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/http-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-headers/reviews/)

## Tags

 * [CSP](https://wordpress.org/support/topic-tag/csp/)

 * 4 replies
 * 2 participants
 * Last reply from: [gottfrieds](https://wordpress.org/support/users/gottfrieds/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/access-problem-6/#post-11394620)
 * Status: resolved