Do you need to use CORS?
The samples provided in our PrizmDoc 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 PAS in Your Server's Entry Point .
How PrizmDoc 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:
- Find your PAS configuration file. If you do not know where it is located, refer to the topic, PrizmDoc Application Services (PAS) Configuration.
- Next, you will need to modify the CORS settings within your PAS configuration file. For information on those settings, refer to the topic, PrizmDoc Application Services (PAS) Configuration.
- After the changes have been made, restart the PAS Service for the changes to take effect. For information on how to start and stop PAS, refer to the topic, Starting & Stopping the PrizmDoc Application Services.
- 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.