Configuring Cross-Domain Settings - Archive Services for Microsoft SharePoint - English - Foundation 22.1 - OnBase - Essential - Premier - Standard - external - Essential - Premier - Standard

Archive Services for Microsoft SharePoint

Platform
OnBase
Product
Archive Services for Microsoft SharePoint
Release
Foundation 22.1
License
Essential
Premier
Standard

When using Archive Services for Microsoft SharePoint to request information from the OnBase Web Server, you must configure the Web Server to allow these requests from SharePoint in the Web Server web.config file.

To configure cross-domain settings:

  1. Locate the web.config file of the OnBase Web Server. In a default installation, this is located at C:\inetpub\wwwroot\AppNet.
  2. Open the web.config file in a plain-text editor, such as Notepad.
    Note:

    The *.config file should only be edited in a plain-text editor, such as Notepad, or a utility specifically designed to edit XML files. It should not be edited in a binary editor, such as Microsoft Word. Using a binary editor can introduce invalid characters to the file and make it unreadable by the software.

  3. Locate the customHeaders element that is a child of the httpProtocol element.
  4. In the customHeaders element, locate the add elements with the following values for their name attributes:
    • X-Content-Type-Options

    • X-Frame-Options

  5. Remove the elements named X-Content-Type-Options and X-Frame-Options from the file.
  6. Add the following elements exactly as listed here:
    <add name="Access-Control-Allow-Origin" value="" />
    <add name="Access-Control-Allow-Methods" value="GET, PUT, POST, DELETE, HEAD, OPTIONS" />
    <add name="Access-Control-Allow-Credentials" value="true" />
    <add name="Access-Control-Allow-Headers" value="X-Requested-With, origin, content-type, accept, x-auth-token, authorization" />
  7. Locate the add element with the name attribute value of Access-Control-Allow-Origin.
  8. Change the value of the value attribute to the URL of the SharePoint server. For example:
    • If SSL is configured, enter the following: value="https://machinename.domain.net" where machinename is the name of the SharePoint server and domain is the name of the domain on which the SharePoint server resides.

    • If SSL is not configured, enter the following: value="http://machinename" where machinename is the name of the SharePoint server.

  9. Save and close the web.config file.
  10. Recycle the application pool of the Web Server for these changes to take effect.