---
title: "How to fix \"Error while initializing chat settings\""
canonical: "https://support.appfire.com/space/SUPPORT/1519485049/How%20to%20fix%20%22Error%20while%20initializing%20chat%20settings%22"
format: markdown
---
This guide explains how to resolve the issue where the Chat Widget fails to load on your website, and the following Axios error appears in the browser console :

- **Error Code:** `ERR_BAD_REQUEST`
- **Message:** `Request failed with status code 403`
- **Name:** `AxiosError`

| **On this page:**<br>> Macro (toc) |
| --- |

## Understanding the error

A `403` status code indicates that the server understood your request but refused to process it. This typically happens if the website you are trying to use the Chat Widget on is not listed in the **Trusted URLs** section of your Chat for JSM settings.

## Why does this happen?

The Chat Widget is designed to display only on websites specified in the **[Trusted URLs](https://appfire.atlassian.net/wiki/spaces/CHAT/pages/87851504/Add+Chat+Widget+on+Your+Website#How-to-Secure-Your-Chat-Widget-with-Trusted-URL(s)-Feature)**[ section](https://appfire.atlassian.net/wiki/spaces/CHAT/pages/87851504/Add+Chat+Widget+on+Your+Website#How-to-Secure-Your-Chat-Widget-with-Trusted-URL(s)-Feature), ensuring better security. 

![image-20241216-142004.png](media://7228fd56-8e36-4e93-b21a-464bf0bd291c)

If your website is not added to this list, the widget won’t load, and you’ll encounter the following error:

![image-20241128-154750.png](media://dab32c36-2606-4793-8141-d697a95e1e94)

## Solution

Follow these steps to resolve the issue:

1. Open the project settings, click **Chat for JSM**, and navigate to **Chat Widget** settings.
2. Ensure that the **Show Chat Widget on website** option is toggled on.
3. Check the **Trusted URLs** section. Verify that all websites where you intend to use the Chat widget are listed. If any websites are missing, add them to the Trusted URLs list.

> 📝 If you use the Chat Widget on multiple websites, ensure that both URLs are added to the **Trusted URLs** section. If one is missing, the widget will fail to load, and you’ll encounter the `403` error.

4. After making updates, save your settings.

Once you’ve updated the Trusted URLs, the Chat widget should load without any errors.

![image-20241216-143301.png](media://10648889-8f68-47be-bc8e-c33b3e2fada3)