Showing results for 
Search instead for 
Did you mean: 
New Member

Power Bi Report Server: Custom Text Filter visual 401 error forms authentication on chrome browser


I am using Custom Text filter Visual in one of the report and hosted on Power Bi Report Server. Custom Control is working fine in Internet Explorer Edge  and failed to load in Chrome with the following errors while loading Javascript files.


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

Not applicable

Same problem here, found any solution?

Are you using Custom Authentication to access the reports?

Not applicable

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.

Not applicable

I resolved the issue using https.


Thanks for your help 🙂

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

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!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.