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.
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 tosv/index.html
, which results in presenting theDeveloperWelcomeScreen
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.