Configuring HotDocs Server to serve interview runtime files

If you install HotDocs Server on a domain different to the one on which HotDocs Hub is installed, you must complete some additional configuration steps.

Cross-Origin Resource Sharing and HotDocs interview runtime files

HotDocs Hub requires the HotDocs Server interview runtime files to display interviews. If HotDocs Server is installed under a different domain than the domain under which Hub is installed, it can cause errors when attempting to load the runtime files, which will result in Hub being unable to load the interview. To stop the errors from occurring, you must configure HotDocs Server to allow GET requests from other domains, using the configuration settings below.

To configure HotDocs Server to serve runtime files

On the server where HotDocs Server is installed:

  1. Open Internet Information Services (IIS) Manager.
  2. Right-click the HDServerFiles application
  3. Select Explore.
  4. Edit the web.config file in a text editor application.
  5. Add the following XML snippet inside the system.webserver section of the web.config:
    <httpProtocol>
         <customHeaders>
              <add name="Access-Control-Allow-Origin" value="*" />
              <add name="Access-Control-Allow-Methods" value="GET" />
         </customHeaders>
    </httpProtocol>
  6. Save your changes to the web.config file.

Next Steps

 

Table of Contents

Index

Glossary

-Search-

Back