Excel prevents add in from reading localStorage/sessionStorage

%3CLINGO-SUB%20id%3D%22lingo-sub-2254759%22%20slang%3D%22en-US%22%3EExcel%20prevents%20add%20in%20from%20reading%20localStorage%2FsessionStorage%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254759%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%20I%20noticed%20an%20issue%20with%20add-in's%20trying%20to%20read%20localStorage%2FsessionStorage%20when%20using%20Excel.%20I%20wrote%20an%20add-in%20about%20a%20year%20and%20a%20half%20ago%20using%20yeoman%20office.js%20and%20it's%20been%20working%20for%20quite%20a%20while%20now.%20A%20couple%20weeks%20ago%2C%20a%20client%20that%20uses%20the%20add%20in%20reported%20some%20issues%20with%20using%20the%20add%20in%20and%20the%20only%20thing%20I%20could%20see%20was%20this%20warning%20in%20the%20devtools%20console%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETracking%20Prevention%20blocked%20access%20to%20storage%20for%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fappsforoffice.microsoft.com%2Flib%2F1.1%2Fhosted%2Foffice.js%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fappsforoffice.microsoft.com%2Flib%2F1.1%2Fhosted%2Foffice.js%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAt%20first%2C%20this%20was%20only%20seen%20to%20happen%20on%20her%20computer%2C%20but%20as%20of%20yesterday%20I%20started%20having%20the%20same%20issue%20even%20when%20running%20my%20dev%20environment%20locally%20on%20my%20computer.%20I%20tried%20following%20this%20article%20to%20update%20MS%20Edge%20settings%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-edge%2Fweb-platform%2Ftracking-prevention%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-edge%2Fweb-platform%2Ftracking-prevention%3C%2FA%3E.%20Unfortunately%2C%20setting%20Tracking%20prevention%20to%20Basic%20does%20not%20change%20anything%20and%20neither%20does%20adding%20appsforoffice.microsoft.com%20and%20the%20other%20domains%20to%20allow%20javascript%20to%20work.%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20seems%20to%20be%20an%20update%20with%20Excel%20since%20I%20was%20not%20able%20to%20right%20click%20on%20any%20of%20the%20panes%20and%20click%20%22inspect%20element%22%20before.%20As%20soon%20as%20I%20was%20able%20to%20do%20this%20was%20also%20the%20same%20time%20I%20started%20having%20this%20issue.%20Is%20this%20a%20bug%20in%20Excel%20not%20being%20able%20to%20read%20the%20Tracking%20protection%20settings%20from%20Edge%20or%20is%20there%20somewhere%20in%20Excel%20that%20I%20can%20set%20these%20permissions%20that%20I%20overlooked%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2254759%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hello, I noticed an issue with add-in's trying to read localStorage/sessionStorage when using Excel. I wrote an add-in about a year and a half ago using yeoman office.js and it's been working for quite a while now. A couple weeks ago, a client that uses the add in reported some issues with using the add in and the only thing I could see was this warning in the devtools console:

 

Tracking Prevention blocked access to storage for https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js

 

At first, this was only seen to happen on her computer, but as of yesterday I started having the same issue even when running my dev environment locally on my computer. I tried following this article to update MS Edge settings https://docs.microsoft.com/en-us/microsoft-edge/web-platform/tracking-prevention. Unfortunately, setting Tracking prevention to Basic does not change anything and neither does adding appsforoffice.microsoft.com and the other domains to allow javascript to work. 

There seems to be an update with Excel since I was not able to right click on any of the panes and click "inspect element" before. As soon as I was able to do this was also the same time I started having this issue. Is this a bug in Excel not being able to read the Tracking protection settings from Edge or is there somewhere in Excel that I can set these permissions that I overlooked? 

0 Replies