NodeJS Server Input plugin preferences 2

The second set of NodeJS Server Input plugin preferences is used to enable serving static HTTP resources, as part of a NodeJS Server workflow. These resources are referred to within the HTML response file and do not pass through a process to get served so the process is very quick. Static resources are especially useful for additional formatting of HTML files such as JS (JavaScript) scripts, CSS files and images, since they are not dynamic and generally shared between multiple dynamic files.

  • Static HTTP resources:

    • Mount point: Specify a path name that should refer to a directory in the currently accessible file system, for example: /img. Different mount points can point to the same directory. Use the buttons below the list to add or delete mount points and to change the order of the mount points in the list.

    • Directory: Type the path of the local folder where the resources for the mount point on the left are located, or click the [...] button and choose the folder in the browse dialog.

  • Proxy List: The proxy list is used to setup end points for redirecting requests to another server.

    • Mount point: Specify a path name for which requests should be redirected to another site, for example: /myrest. Different mount points can point to the same remote site. Use the buttons below the list to add or delete mount points and to change the order of the mount points in the list.

    • Remote site: Type the address of the server to which the request should be redirected.

      Note: The 'Forward all HTTP traffic to HTTPS' option (see NodeJS Server Input plugin preferences 1) does not affect proxies. All routes set as proxy in Workflow will be forwarded to the target specified in the proxy list.

  • Cross-Origin Resource Sharing (CORS)

    • Allowed Origins: Enter an origin (everything in a URL before the path, e.g. http://www.example.com). The Workflow server will add this value to the

      Access-Control-Allow-Origin

      header, which signals to the browser that it is allowed to make the request. This enables cross-origin resource requests, such as AJAX requests.
      The default setting "*" is a wildcard that allows all cross-origin resource requests.