CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

PDFViewer error "file origin does not match viewer's"

by gbh100 » 24 Apr 2020 19:15

I have an application running in an Amazon VM that utilizes the PDFViewer component. When I access the application in HTTPS I get this message when I try to view the PDF file: "Message: file origin does not match viewer's". The application is ISAPI and runs behind an AWS load balancer with the SSL certificate installed on it. Basically everything behind the load balancer is HTTP. The PDFViewer is not accepting the URL of the document because the browser is HTTPS and the document URL is HTTP. How can I override this?
gbh100
 
Posts: 80
Joined: 30 Dec 2014 17:13
Location: Canada

by Alexander Bulei » 13 May 2020 09:26

Hi,

Add your hosts to PDFViewerOptions.Viewer.HostedOrigins list.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

cron

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.