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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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