Protected View is not something you can avoid. It is a safety feature built into Excel and other Office products, driven by a Windows-level feature called Mark of the Web. Every Excel file downloaded from the Internet would get the same treatment, irrespective of the web framework technology used and how the Excel file was produced.