Setting Security Headers

To ensure your web page can securely access and send data to pagent, you need to configure the appropriate security headers. Below is a guide for setting up these headers, including a Content Security Policy (CSP).

Content Security Policy (CSP)

The Content Security Policy header controls which resources can be loaded on your page. To allow *.pagent.ai, you need to include it in your policy. Here’s an example configuration:

Content-Security-Policy: connect-src 'self' https://*.pagent.ai; frame-src 'self' *.pagent.ai;