HTTP Header Settings

Learn how to configure HTTP header settings to ensure embedded content displays correctly on your Staffbase platform.

The HTTP header plays a crucial part in displaying embedded content correctly in your Staffbase platform. Configure the frame-ancestor directives in the HTTP header of your pages, services, and plugins to make them embeddable on desktop and native.

You must configure the HTTP header on the website or service you want to embed, not within the Staffbase platform.

Embedding content into Staffbase uses Content Security Policy (CSP). The frame-ancestors directive specifies valid embedding sources and ensures browser compatibility. Staffbase also uses Capacitor for mobile app development, so your configuration must support both desktop and mobile environments.

You need the following to enable embedding in Staffbase:

  • You have access to configure the HTTP header of the website or service you want to embed.
  • You know your Staffbase domain and subdomain. For example, http://mydomain.com

Staffbase supports two types of CSP headers for embedding:

  • New CSP headers
  • Legacy CSP headers

The key difference is that the new CSP headers use https for the Staffbase domain and URL, while the legacy CSP headers use both http and https. It is important to note that the capacitor:// scheme remains unchanged in both types.

Starting with the Q1 2026 Release (February 2026), Staffbase will discontinue support for legacy CSP headers. You need to take action only if use legacy CSP headers for embedding content in your Staffbase platform. To ensure continued compatibility, update your configurations to use the new CSP headers.

If you use SAML Integrations, custom plugins, the Embedded Pages plugin or widgets, or external video providers for embedding, ensure your CSP headers are updated accordingly. Newly released features may require the new CSP headers for proper functionality.

Staffbase uses Capacitor for cross-platform development. Therefore, it is required that the embedding also works with the mobile apps.