> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/system-administration/system-settings/content-security-policy.md).

# Content Security Policy

### Description

A **Content Security Policy (CSP)** is a security feature that helps prevent cross-site scripting (XSS), clickjacking, and other code injection attacks by controlling which resources a web page is allowed to load. It works by specifying a set of rules (via HTTP headers or meta tags) that define trusted sources for content like JavaScript, CSS, images, fonts, and more.

By restricting where content can be loaded from, CSP helps ensure that only safe, expected resources are used—reducing the risk of malicious code execution.

### LogicNets Mandatory CSP

In LogicNets Release version 8.3 and later, the System Configuration package contains LogicNets mandatory CSP items. These are set to read-only and cannot be edited.

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-4b1cb92e30645efd4491b3ae99ae9a004f2c6c14%2Fb6deed6b-1c23-4ce8-9a94-1b21ab989682.png?alt=media)

### Your Custom CSP

In addition, you can add your own CSP terms by clicking on the ADD icon (highlighted green) to the far right of the custom table. Enter the directive reference and value in the grid (highlighted yellow).

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-9e15fbc6df8142534b57b85eb38edd599e7cc7fe%2Ffc8f1bb9-ea31-466a-a2be-c738aaffb848.png?alt=media)

### Earlier Versions of LogicNets CSP

In earlier versions of LogicNets (Release 8.2 and before), the CSP is written as placeholder text that can be fully modified.

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-3199f6e030dcca0600993e0a7e96ed9da61304df%2F7f2f7652-51fe-4b24-ae0d-22e7766ecda2.png?alt=media)

Copy the default CSP from here, and make edits and additions as required.

*default-src 'self'; script-src 'self'* [*www.gstatic.com*](http://www.gstatic.com) [*www.google.com*](http://www.google.com) [*www.googletagmanager.com*](http://www.googletagmanager.com) [*www.google-analytics.com*](http://www.google-analytics.com) [*www.googleadservices.com*](http://www.googleadservices.com) [*http://localhost:41666*](http://localhost:41666) *'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'* [*fonts.googleapis.com*](http://fonts.googleapis.com)*; img-src 'self'* [*validator.swagger.io*](http://validator.swagger.io) [*www.google.com*](http://www.google.com) *'unsafe-inline'* [*www.google-analytics.com*](http://www.google-analytics.com) [*https://googleads.g.doubleclick.net*](https://googleads.g.doubleclick.net) [*https://code.highcharts.com*](https://code.highcharts.com) *data: blob: ; connect-src 'self'* [*www.google-analytics.com*](http://www.google-analytics.com) [*www.googletagmanager.com*](http://www.googletagmanager.com) [*http://localhost:41666*](http://localhost:41666)*; frame-src 'self'* [*www.google.com*](http://www.google.com) [*https://login.microsoftonline.com/*](https://login.microsoftonline.com/)*; font-src 'self'* [*fonts.gstatic.com*](http://fonts.gstatic.com)*;*

### Additional Information

For more information on Content Security Policies in general see also <https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP>.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/system-administration/system-settings/content-security-policy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
