Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hejazi
New Member

Errors with status 401 *** Power BI Report Server (Custom Authentication)

I have a Power BI Report Server (May 2021) running with custom forms authentication and now have problems with Chrome browser not showing custom visuals.
 
Looking at the Chrome console shows that Chrome blocks cookies if SameSite is not set and Secure(SSL) is not set to true.
 
This gives me various errors (with status 401) ...
 
To the enduser looking at a PowerBI report the only problem is that custom visuals are not shown. The rest of the report works as expected.
 
Safari (iOS), Firefox, Edge (Chromium) and IE11 do not have this problem, but will in the near future as there are warnings that SameSite in not set - but no errors for now.
 
I set cookieSameSite="None" in my web.config of the login website where my auth cookie is generated.
 
The same setting I made in the web.config of the Power BI report server, but I think that Power BI Report Server (May 2021) is currently not using the samesite setting.
 
Setting Chrome flags "SameSite by default cookies" to disabled is a workaround for Chrome - but I don't want to tell my users to disable the setting and get a security issue ... 😉
 
Any thoughts what to change to make Chrome and Custom Visuals work again?IMG-20210622-WA0001.jpgIMG-20210622-WA0002.jpgIMG-20210622-WA0003.jpgIMG-20210622-WA0000.jpg
2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @hejazi ,

 

Do the incognito window work?

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

d_gosbell
Super User
Super User

Custom Visuals are loaded in iframes for security reasons to limit their access to the report and data, but this can cause issues with custom cookies. I think the simplest fix is probably to implement SSL and have your cookies marked as secure. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.