Skip to content

Commit

Permalink
remove cookie securedness
Browse files Browse the repository at this point in the history
  • Loading branch information
jokil123 committed Jan 2, 2024
1 parent b68af0d commit b3a5cb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 6 additions & 5 deletions EsefexApi/api/routes/getlinkredirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ func (h *RouteHandlers) GetLinkRedirect(w http.ResponseWriter, r *http.Request)
}

cookie := http.Cookie{
Name: "User-Token",
Value: string(userToken),
Path: "/",
MaxAge: 0,
Secure: true,
Name: "User-Token",
Value: string(userToken),
Path: "/",
MaxAge: 0,
// enable this once we have https
Secure: false,
HttpOnly: true,
SameSite: http.SameSiteDefaultMode,
}
Expand Down
2 changes: 0 additions & 2 deletions EsefexApi/api/templates/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Link to Esefex</title>
<link rel="stylesheet" href="./index.css">
<script src="./index.js" defer></script>
<style>
body {
display: flex;
Expand Down

0 comments on commit b3a5cb8

Please sign in to comment.