Skip to main content

Hosting a Well-Known Static Resource

As part of adding the Browser SDK, a static resource must also be added to the application. It's recommended that a 1x1 pixel transparent PNG be used.

This static resource must be available at the path /icons/blank.gif and conform to the following requirements:

  1. There must be no automatic redirect from this URL to another web page.
  2. You must add a full exception to the content security policy (CSP).
  3. The image size can be up to 500 bytes.
  4. The image type must be image/gif, image/png, image/jpeg, or image/jpg.
  5. The static resource should include a content type header, for example, Content-Type:image/png to avoid prompting the user to download the resource.

The Browser SDK includes a static resource, which can be exposed in a similar way to how the Browser SDK is exposed, using the following code snippet:

app.use('/icons/blank.gif', express.static(__dirname + '/node_modules/adaptive-browser-sdk/blank.gif'));

Next: Adding the Proxy SDK to an Application Server

Previous: Serving the Login Page