Title: CORS solution
Last modified: March 6, 2023

---

# CORS solution

 *  Resolved [anasnagati](https://wordpress.org/support/users/anasnagati/)
 * (@anasnagati)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/cors-solution/)
 * I have a file hosted on AWS for bandwidth reasons 
   I need to view it using PDF
   Poster plugin Neither the plugin or AWS could be changed Trying to view the file
   shows the error “PDF.js v1.4.20 (build: b15f335)Message: file origin does not
   match viewer’s”How can I change the code to override this setting considering
   security.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [shehabulislam](https://wordpress.org/support/users/shehabulislam/)
 * (@shehabulislam)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/cors-solution/#post-16534701)
 * Hi [@anasnagati](https://wordpress.org/support/users/anasnagati/),
 * I am sorry, right now this plugin only support self hosted PDF.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘CORS solution’ is closed to new replies.

 * ![](https://ps.w.org/pdf-poster/assets/icon-128x128.png?rev=3474162)
 * [PDF Poster – Display PDF Files with Custom Viewer](https://wordpress.org/plugins/pdf-poster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-poster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-poster/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-poster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-poster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-poster/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [shehabulislam](https://wordpress.org/support/users/shehabulislam/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/cors-solution/#post-16534701)
 * Status: resolved