diff --git a/routesauthorization.go b/routesauthorization.go index acc28c5..513e356 100644 --- a/routesauthorization.go +++ b/routesauthorization.go @@ -64,7 +64,7 @@ func loginCallback(c *gin.Context) { } //perms don't really matter too much in terms of security, so we'll not enforce it being secure - c.SetCookie("perms", strings.Join(perms, "+"), 64000, "/", c.Request.Host, false, false) + c.SetCookie("perms", strings.Join(perms, "+"), 64000, "/", "", true, false) _ = session.Save() c.Redirect(http.StatusTemporaryRedirect, "/") diff --git a/src/App.vue b/src/App.vue index c9d4d0e..6aa5c44 100644 --- a/src/App.vue +++ b/src/App.vue @@ -126,7 +126,7 @@ export default { this.$vuetify.theme.dark = !this.$vuetify.theme.dark; }, logout: function () { - axios.post('/logout').then(() => { + axios.get('/logout').then(() => { this.loggedIn = false this.$cookies.remove("perms") this.$cookies.remove("panelsession")