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

Client library does not work with CDNs that have strict requirements for the query string #12

Open warpech opened 3 years ago

warpech commented 3 years ago

I tried using the client library with frame assets hosted with CDNs skypack.dev and unpkg.com and they both have the same problem: Providing a custom query string (?svId=...) by client library results in an error or a 302 redirection.

The solution to this appears to be to use the hash (#) part of the URL instead of the search (?) part.

For that reason, I suggest that the URL parameters could be given either in the ?... part (ending at the URL end or the # character) or in the #... part.

Then we could rename the "Query String API" to "URL API". We could do it at once with https://github.com/handsontable/spreadsheet-viewer-dev/issues/942