Skip to content

Commit dd1dd21

Browse files
SEtSEcure as true
1 parent effa7c9 commit dd1dd21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/iemr/common/utils/CookieUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void addJwtTokenToCookie(String Jwttoken, HttpServletResponse response, H
4343
// Set Secure flag for HTTPS connection and SameSite=None for cross-site support
4444
cookie.setSecure(true); // Enable cookie only on HTTPS
4545
} else {
46-
cookie.setSecure(false); // No need for Secure flag on HTTP connections
46+
cookie.setSecure(true); // No need for Secure flag on HTTP connections
4747
}
4848

4949
// Add the cookie to the response

0 commit comments

Comments
 (0)