Pipedrive JSON Sidepanel Error

Hi there,

When I load my JSON sidepanel, I get the following error in my dev network tab :

{
    "data": {
        "reinstall": true
    },
    "error": "External communication error (Unauthorized)",
    "success": false
}

My app is using basic authentication with username and password.

When I run the app itself, it retrieves the correct data for the panel, but in the panel itself it says “Something went wrong” and shows that error in the tab.