Embedded Dashboard - Failure on load
I use SDK Compose to display embedded dashboard in my React app. As an auth I use Api Token . When I am trying to display embedded dashboard via DashboardById component on my localhost it fails with an error. Dashboard id is sued properly, dashboard exists and work well if yo reach it via Sisense -> Analytics. Also API token works properly as well - Sisense auths with it on app's load.
This is my code:
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<SisenseContextProvider url='https://myapp.sisense.com' token='eyJhbGciOiJIUzI1NiIsInR5cCI...' >
<App />
</SisenseContextProvider>
</React.StrictMode>
);
in App:
<DashboardById dashboardOid="67dc5d2bf2594c003311a8ad" />
I also tried to display the same dashboard via <iframe>, in that case it fail show login page in embedded view and once I pass the auth it fails dashboard loading with "401 unauthorized" error:
I tried http and https localhosts, but it doesn't effect,Embedded code is on in settings, host is also added to the list to pass cors. What could be an issue?
I have created a ticket but the problem is not resovled yet, sso is enabled when I use API token. This is a link to my ticket https://community.sisense.com/t5/support-portal/bd-p/SupportPortal?page=casedetails&caseId=500Pk00000bJkY6IAK . HAR files are attached to this topic