Skip to content

Commit 4e420d6

Browse files
Merge pull request #21 from jornatf/develop
Change cookie secure value for local env
2 parents b7b4593 + 9514284 commit 4e420d6

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)