Skip to content

Commit c73aa98

Browse files
committed
Fix cookie handling in development
1 parent 29744d0 commit c73aa98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crystal/config/cookies.cr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ Lucky::CookieJar.configure do |settings|
2121
# You can set other defaults for cookies here. For example:
2222
#
2323
# cookie.expires(1.year.from_now).domain("mydomain.com")
24-
cookie.expires(1.week.from_now).domain("readrust.net")
24+
if LuckyEnv.production?
25+
cookie.expires(1.week.from_now).domain("readrust.net")
26+
else
27+
cookie
28+
end
2529
}
2630
end

0 commit comments

Comments
 (0)