I want to open the downloaded xlsx file through JavaScript using a Office URI scheme in Excel.
Hello, I'm trying to open an xlsx file downloaded through JavaScript in Excel using the Office URI scheme, but it's not working properly.
Example URL: "ms-excel:ofv|u|:http://localhost:3000/706848bd-8ab3-4eba-8662-2cd3761a452f.xlsx"
As a result, the following error dialog is displayed by protocolhandler.exe
Title: Unsafe Content
This file is from a restricted site zone. Therefore, to protect users from unsafe content, Office has blocked this file from opening.
<Environment>
OS: Windows 11 Pro 22H2
Excel: Microsoft Excel for Microsoft 365 MSO (version 2306 build 16.0.16529.20164) 64bit
Browser: Google Chrome (version:115.0.5790.102)