PrizmDoc Viewer v13.5 - Updated
How & When to use CORS with PrizmDoc Viewer
Administrator Guide > System Configuration > Configure PrizmDoc Application Services (PAS) > How & When to use CORS with PrizmDoc Viewer

Do you need to use CORS?

The samples provided in our Viewer installer remove the need for cross-origin resource handling. We recommend setting up your web-application similarly or having PrizmDoc Application Services (PAS) proxied behind a web-server, which is discussed in the topic, Configure the Web Server Proxy.

How PrizmDoc Viewer supports CORS

While we do not recommend a design that requires CORS, it is possible to configure PAS to handle those requests. Use the following steps to accomplish this:

  1. Find your PAS configuration file. If you do not know where it is located, refer to the topic, PAS Configuration.
  2. Next, you will need to modify the CORS settings within your PAS configuration file. For information on those settings, refer to the topic, PAS Configuration.
  3. After the changes have been made, restart PAS for the changes to take effect. For information on how to start and stop PAS, refer to the topic, Starting & Stopping PAS.
  4. Update the imageHandlerUrl in the viewer initialization options to point directly to the publicly accessible PAS entry point. For more information on viewer configuration options, refer to the topic, Initialization Parameters.
There is no native support for CORS in Internet Explorer 8 and 9.