Forum Discussion

Provsten's avatar
Provsten
Copper Contributor
Apr 25, 2024

SharePoint embedded folder in Power Apps suddenly gives a 401 UNAUTHORIZED error

Hello, 

 

We are using an iFrame in a Power Apps model-driven app to display a SharePoint Online folder in context of the record. 


This approach has been working fine for at least a couple of months but suddenly we are getting an 401 UNAUTHORIZED error in the iFrame. 

 

The user can open the folder in a new tab without any issues. 

 

Does anyone know if anything has changed in SharePoint that could affect this approach? E.g. something regarding authentication or similar?

 

BR,

Niels

  • Maybe this has solved itself.

     

    The solution for us was simply to Reset Settings in Edge. That fixed the issue for all users.

     

  • Provsten's avatar
    Provsten
    Copper Contributor

    Maybe this has solved itself.

     

    The solution for us was simply to Reset Settings in Edge. That fixed the issue for all users.

     

    • Classen's avatar
      Classen
      Copper Contributor

      was it a viable solution? We are having multiple customers with this iframe setup and has for some customers worked for years and suddenly they are given the "401 Unauthorized", but when opening it in sharepoint, it appears that the credentials are updated and therefore the iframe is working again.. 

  • SunVolt's avatar
    SunVolt
    Copper Contributor

    Also getting a similar issue, but it's with images. I can open the isolated images successfully in a new tab, but otherwise it's throwing 401s.

Resources