handsontable / spreadsheet-viewer

Spreadsheet Viewer is a developer-friendly JavaScript tool that lets your users preview Excel files without leaving your web app
https://handsontable.com/spreadsheet-viewer
33 stars 10 forks source link

It is hard to debug situations when HTTP server removes svId #10

Closed warpech closed 3 years ago

warpech commented 3 years ago

I tried hosting SV on a CDN like unpkg.com. In theory, such a CDN is capable of serving HTML files.

In practice, it turns out that a request to sv/index.html?svId=abc is treated with a 302 redirection that removes the query string parameter. The user is redirected to sv/index.html, which results in presenting the DeveloperWelcomeScreen instead of the expected XLSX file preview.

We should add more information both in the client library and in the SV frame to help identify the problem. I've spent an hour investigating it, thinking that this is some cross-origin issue.

warpech commented 3 years ago

Closing as fixed in #6