Failed to load resource: the server responded with a status of 401 (Unauthorized) visualSandbox.externals.js:1
We tried enabling Access-Control-Allow-Origin on report server config and web.config and even in Report Server database in the configuration table. but no luck.
Using the Power BI Report Server version - October 2019 release .
Any suggestions please
Yes i made my own version of custom authentication and when i open a report with custom visuals, i see many 401 messages in the chrome debug console. If i open a report with no custom visuals it works without problem.
Report = PBI Report, not paginated reports.
PS: My PBIRS version is Jan 2020
The issue is mainly when using Custom Authentication. You will not see this issue with AD authentication.
The solution that worked for me is as below. I have added an attribute cookieSameSite="None" to the forms tag as shown below.
<forms loginUrl="logon.aspx" name="sqlAuthCookie" timeout="60" path="/" cookieSameSite="None"></forms>
Let me know if the issue is resolved after doing the above mentioned change and Accept it as a Solution.
Only way I was able to get this to work was setting this to disabled: chrome://flags/#same-site-by-default-cookies
I'd rather not ask all my users to do that, am I missing a step after editing the web.config file?
Can you provide a little more detail on how you resolved this? Not sure where to find that forms tag that you mentioned.
I seem to have the same problem, I am using report server with custom auth and it seems that all custom visuals do not work in chrome, despite working in all other browsers (Mozilla / Safari / Edge). Just about all of my users are using chrome and I want this to work for them.
Appreciate any guidance you can proivde @KSN
Edit: Ok i found the tag in web.config.. made the edit and restarted the server.. still get the same 401 errors as described in orignal post.
Take a look at the September 2023 Power BI update to learn more.
Join Microsoft Reactor and learn from developers.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.