SOLVED

Edge WebView2 Runtime lets our Store Office Add In fail

%3CLINGO-SUB%20id%3D%22lingo-sub-2275751%22%20slang%3D%22de-DE%22%3EEdge%20WebView2%20Runtime%20lets%20our%20Store%20Office%20Add%20In%20fail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2275751%22%20slang%3D%22de-DE%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3Ewe%20have%20an%20Office%20AddIn%20(Content%20Add%20In%20for%20PowerPoint)%20in%20the%20store%20for%20a%20long%20time.%3C%2FP%3E%3CP%3EWith%20this%20Office%20version%20we%20get%20a%20%22%3CEM%3E%3CSTRONG%3EToo%20many%20redirect%3C%2FSTRONG%3E%3C%2FEM%3E%22%20error%20when%20the%20Add%20In%20is%20authenticating%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ndee8sh_0-1618569156602.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F273289iD7170E57FD42F658%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ndee8sh_0-1618569156602.png%22%20alt%3D%22ndee8sh_0-1618569156602.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20add%20in%20and%20the%20server%20we%20are%20connecting%20does%20not%20have%20changed.%3CBR%20%2F%3E%3CSTRONG%3ENow%20I%20simply%20de-installed%20the%20Microsoft%20Edge%20WebView2%20Runtime%20(89.0.774.76)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ENow%20our%20Add%20In%20works%20again%20like%20expected.%3C%2FP%3E%3CP%3E%3CEM%3EAny%20ideas%20or%20is%20this%20just%20a%20bug%20in%20WebView2%3F%3CBR%20%2F%3E%3C%2FEM%3EThanks%2C%20Andi%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi there,

we have an Office AddIn (Content Add In for PowerPoint) in the store for a long time.

With this Office Version we get a "Too many redirect" error when the Add In is authenticating:

ndee8sh_0-1618569156602.png

The add in and the server we are connecting does not have changed.
Now I simply de-installed the Microsoft Edge WebView2 Runtime (89.0.774.76)

Now our Add In works again like expected.

Any ideas or is this just a bug in WebView2?
Thanks, Andi

1 Reply
best response confirmed by ndee8sh (New Contributor)
Solution

The redirects in authentication flow are due to a stricter handling of cross site cookies in chromium based webview.
The cookies must set the SameSite-Mode to None and Secure to true to support saving of authentication cookies cross site.

See the complete answer and solution here.