static-file-server icon indicating copy to clipboard operation
static-file-server copied to clipboard

How to keep params in url during exploring files?

Open flymin opened this issue 3 years ago • 1 comments

After I add PR#68, I realized that the parameters in the url (e.g., ?key=....) will be lost when exploring files with explorer. I think the parameters should be kept once added to the url, but I do know how to implement this.

I tried to work with the Referer and use it to bypass access control checking but it won't work. Since I do not actually change the url, the parameters in the referer will be lost after one jump. How should I add parameters explicitly to the url generated by clicking?

Could anyone provide any ideas for improvements?

flymin avatar Jul 13 '22 06:07 flymin

Only way that comes to mind (aside from making a custom client) is to use a cookie in the HTTP headers.

halverneus avatar Jul 13 '22 22:07 halverneus