Skip to content

Commit 9514284

Browse files
authored
Change cookie secure value for local env
1 parent b7b4593 commit 9514284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CookiesManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected function makeConsentCookie(): CookieComponent
160160
value: json_encode($this->preferences),
161161
minutes: config('cookieconsent.cookie.duration'),
162162
domain: config('cookieconsent.cookie.domain'),
163-
secure: true
163+
secure: (env('APP_ENV') == 'local') ? false : true
164164
);
165165
}
166166

0 commit comments

Comments
 (0)