# Troubleshooting

Here are some common issues and tips for resolving the issue.

### Content Security Policy

If you use a restrictive [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) on your site, you may need to add additional rules to allow JavaScript associated with TrustedSite Certification to function.

The site's set of CSP rules required should include the following, in addition to the existing rules needed for your site content:

```
Content-Security-Policy: script-src-elem https://cdn.ywxi.net; style-src-elem 'unsafe-inline' https://cdn.ywxi.net; img-src https://cdn.ywxi.net; connect-src https://s3-us-west-2.amazonaws.com; frame-src https://www.trustedsite.com;
```

### Crawler Issues

If you are experience issues with the TrustedSite crawler being blocked, you may need to add the following User-Agent to your Intrusion Protection System allowlist:

```
Mozilla/5.0 (compatible; TrustedSite/1.0; +http://www.trustedsite.com/crawler)
```

### Dynamic Pages

If you're having issues with inline trustmarks not loading when added dynamically, you can add `data-rescan="1"` to your main code. It will continue checking after page load for the presence of the TrustedSite inline trustmarks.

```html
<script src="https://cdn.ywxi.net/js/1.js" data-rescan="1" async></script>l
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trustedsite.com/docs/installation/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
