Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

How do I configure CSP connect sources (XHR, fetch, API) in Aegisify Shield?

XHR / fetch / API endpoints sets the connect-src directive. It controls which servers JavaScript on your pages may contact using fetch, XMLHttpRequest, WebSockets, and similar browser APIs. It is in Aegisify Shield → Security Headers → CSP Builder (Pro).

Why it matters

If an attacker manages to run a script, connect-src can stop it from sending stolen data to their server. It is one of the most useful directives for protecting forms and checkout pages.

How to fill it in

  • Enter one source per line, for example https://api.example.com.
  • Your own site is included.
  • Start in Report-Only mode.

Commonly needed endpoints

  • Analytics collection endpoints.
  • Payment providers’ APIs on checkout pages.
  • Chat, support, and CRM widgets.
  • Live search or headless API back ends.
  • WebSocket services (use wss:// addresses).

What breaks if something is missing

Analytics stop recording, payment forms fail to load, live features freeze, or editors fail to save. Test every interactive feature in Report-Only mode and check CSP Reports before enforcing.

Good practice

Keep this list short and specific. Avoid broad entries such as https:, which allow any secure server and remove most of the benefit.

Related: CSP script sources, CSP Builder mode.

2026-12-01T03:49:27+00:00January 13th, 2026||

Find this article interesting, please share.