Skip to content

Commit

Permalink
fix: allow cross domain
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtim committed Jun 11, 2022
1 parent 3896e3d commit 922b86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/auth/line.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func LineCallback(c *fiber.Ctx) error {
}
redirectURL := fmt.Sprintf("http://%s%s", clientHost, configs.Config.LINE_WEB_CALLBACK_PATH)
authCookie := fmt.Sprintf(
"%s=%s; Max-Age=%d; Path=/",
"%s=%s; Max-Age=%d; Path=/; SameSite=None; Secure;",
configs.Config.JWTCookies,
jwtToken,
int64(auth.TOKEN_EXPIRE/time.Second),
Expand Down

0 comments on commit 922b86c

Please sign in to comment.