> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/knowledge-base/english/troubleshooting/i-get-a-cross-origin-error-when-loading-enginsight-in-the-browser-what-can-i-do.md).

# I get a cross-origin error when loading Enginsight in the browser. What can I do?

In some cases, the Enginsight platform may not load in the browser. When you inspect the page using the browser’s developer tools, the following message is displayed:

```
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [URL]
```

In this case, you can follow these steps to resolve the issue:

{% stepper %}
{% step %}

### Check the validity of the SSL/TLS certificate

Check whether the SSL/TLS certificate you are using is still valid and replace any expired certificates.

{% hint style="success" icon="lightbulb" %}
For more information on how to replace an SSL/TLS certificate in Enginsight, see the Knowledge Base: [How do I update a SSL/TLS certificate by Let's Encrypt in Enginsight?](/docs/knowledge-base/english/configuration/how-do-i-update-a-ssl-tls-certificate-by-lets-encrypt-in-enginsight.md) or [How do I replace a self-signed SSL/TLS certificate in Enginsight?](/docs/knowledge-base/english/configuration/how-do-i-replace-a-self-signed-ssl-tls-certificate-in-enginsight.md)
{% endhint %}
{% endstep %}

{% step %}

### Re-run the setup script for the Application Server

When running the setup script for the Enginsight Application Server, make sure that the corresponding domains, not the IP address of the Application Server, are entered when prompted for the URLs of the Enginsight user interface (app) and the API.

Follow these steps to re-run the setup script for the Application Server and make any necessary changes:

1. Log in to the **Application Server**.
2. Navigate to the Enginsight installation directory using the following command:

```
cd /opt/enginsight/enterprise
```

3. Run the setup script using the following command:

```
sudo ./setup.sh
```

4. When prompted for URIs and URLs, make sure that the URLs for the Enginsight user interface (app) and the API are entered as follows. Replace the placeholders in `<>` as needed:
   * **Enter App URL**: `https://<DomainApp>`
   * **Enter API URL**: `https://<DomainAPI>`
     {% endstep %}

{% step %}

### Configure Firefox when using a Windows PKI

If you use a Windows PKI (Public Key Infrastructure) as the SSL/TLS certificate, this will cause issues when using the Mozilla Firefox browser, because Firefox does not trust this type of certificate by default.

In this case, you need to configure Firefox accordingly. You can find instructions on Stack Overflow: [Why is this CORS request failing only in Firefox?](https://stackoverflow.com/questions/24514666/why-is-this-cors-request-failing-only-in-firefox)

{% hint style="warning" %}
**Please note**: Enginsight assumes no liability for the content and topicality of third-party documentation.
{% endhint %}
{% endstep %}
{% endstepper %}

***
