mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (ios): auth issue on ios
when using deep links on ios, we would get this error: "safari can't open the page because the address is invalid"
This commit is contained in:
parent
3c969bd89d
commit
40e9938148
1 changed files with 1 additions and 1 deletions
|
|
@ -478,7 +478,7 @@ func SessionAuthMiddleware(ctx *App, res http.ResponseWriter, req *http.Request)
|
||||||
if Config.Get("features.protection.iframe").String() != "" {
|
if Config.Get("features.protection.iframe").String() != "" {
|
||||||
redirectURI += "#bearer=" + obfuscate
|
redirectURI += "#bearer=" + obfuscate
|
||||||
}
|
}
|
||||||
http.Redirect(res, req, redirectURI, http.StatusTemporaryRedirect)
|
http.Redirect(res, req, redirectURI, http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
|
|
||||||
func applyCookieRules(cookie *http.Cookie, req *http.Request) *http.Cookie {
|
func applyCookieRules(cookie *http.Cookie, req *http.Request) *http.Cookie {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue