Skip to content

Commit

Permalink
fix: add cookie domain (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadeksuryam authored Apr 30, 2023
1 parent 9b46613 commit cab0ed3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/handler/routes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package handler

import (
"backend/config"
"backend/internal/repository"
"backend/internal/service"
"net/http"
Expand Down Expand Up @@ -77,6 +78,7 @@ func ClearAllCookies(c echo.Context) error {
cookie.Path = "/"
cookie.HttpOnly = true
cookie.MaxAge = -1
cookie.Domain = config.C.CookieDomain

c.SetCookie(cookie)
}
Expand Down

0 comments on commit cab0ed3

Please sign in to comment.