XmlHttpRequest in an toggle button's panel will not send cookies

I have an addon that has a toggle button.
When clicking on the toggle button I open a panel, which displays an HTML page.
From that page I perform an XmlHttpRequest to our servers, the request is sent without any cookies.

I tried adding the following to the package.json file:

"permissions": {
        "cross-domain-content": ["MY_URL"]
    },

But that didn’t work.

Any help would be appreciated.

1 Like

Do you see any errors in the console? Have you tried sending the request from the background script?