# Widget troubleshooting

What to check when the widget does not appear or does not work, the Content Security Policy it needs, and its language.

Open your browser's developer console on the page with the widget: its messages start with `[Feedzzie]`.

## The button does not appear

| You see | What to do |
|---|---|
| `[Feedzzie] Missing required "org" parameter` | Add `data-org="your-org"` to the script tag, or `org` to `window.Feedzzie`. |
| An error that loading `widget.js` violates the Content Security Policy | Allow Feedzzie in your [Content Security Policy](#content-security-policy). |
| Nothing in the console | Check that the snippet is on this page and that `src` is `https://feedzzie.com/widget.js`. |

## The button appears, but the panel does not work

| You see in the panel | And in the console | What to do |
|---|---|---|
| "404: This page could not be found." | `[Feedzzie] Failed to fetch config: 403` | Turn on **Enable Widget** in **Settings › Widget** and save. |
| An error page instead of the board | `[Feedzzie] Failed to fetch config: 404` | The organization or project slug is wrong: copy the snippet again from **Get embed code**. |
| An error page instead of the board | Framing violates `frame-ancestors` | This page's domain is not in **Allowed Domains**, or the page is not served over https. See [allowed domains](https://docs.feedzzie.com/widget/install/#2-allow-your-websites-domain). |
| An error page instead of the board | Framing violates `frame-src` | Allow Feedzzie in your [Content Security Policy](#content-security-policy). |

## Visitors cannot vote or post ideas

- **The vote buttons are disabled, or there is no New Idea tab**: turn on **Allow Anonymous Votes** and **Allow Anonymous Submissions** in **Settings › Widget › Permissions**.
- **Votes do not count and new ideas fail**: add your site's domain to **Allowed Domains**. Without domains, the widget only shows the ideas.

## The button and the panel have no styles

The widget styles itself with an inline `<style>`, and your Content Security Policy blocks it: add `'unsafe-inline'` to `style-src` ([below](#content-security-policy)).

## The widget ignores the dashboard settings

If the widget uses the default position, color and text instead of the ones in **Settings › Widget**:

- the snippet sets them: values in the snippet win over the dashboard ([options](https://docs.feedzzie.com/widget/options/#which-value-wins));
- or your Content Security Policy blocks the widget's request for its settings (the console shows `[Feedzzie] Failed to fetch config: TypeError: Failed to fetch`): add Feedzzie to `connect-src`.

A change in the dashboard can take a couple of minutes to reach the widget.

## The widget is behind other elements

Raise its `z-index` (the default is `9999`):

```html
<script src="https://feedzzie.com/widget.js" data-org="your-org" data-project="your-project" data-z-index="100000"></script>
```

## Content Security Policy

If your site sends a `Content-Security-Policy` header, the widget needs `https://feedzzie.com` in three directives, and inline styles:

| Directive | Why |
|---|---|
| `script-src https://feedzzie.com` | To load `widget.js` |
| `connect-src https://feedzzie.com` | To read your project's widget settings |
| `frame-src https://feedzzie.com` | The panel shows your board in an iframe |
| `style-src 'unsafe-inline'` | The widget adds its own `<style>` |

For example, a policy that only allows your own site and Feedzzie:

```text
Content-Security-Policy: default-src 'self'; script-src 'self' https://feedzzie.com; connect-src 'self' https://feedzzie.com; frame-src https://feedzzie.com; style-src 'self' 'unsafe-inline'
```

Add these sources to the directives you already have instead of replacing them.

## Language

The widget is in English for now, whatever the language of your site or of the visitor.
