Skip to content

Commit a0d4f7c

Browse files
website21czdg
authored andcommitted
HttpExtension: dynamic options cookiePath, cookieDomain, cookieSecure (#216)
1 parent df1eb43 commit a0d4f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bridges/HttpDI/HttpExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function getConfigSchema(): Nette\Schema\Schema
3939
'csp' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy
4040
'cspReportOnly' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy-Report-Only
4141
'featurePolicy' => Expect::arrayOf('array|scalar|null'), // Feature-Policy
42-
'cookiePath' => Expect::string(),
43-
'cookieDomain' => Expect::string(),
44-
'cookieSecure' => Expect::anyOf('auto', null, true, false)->firstIsDefault(), // Whether the cookie is available only through HTTPS
42+
'cookiePath' => Expect::string()->dynamic(),
43+
'cookieDomain' => Expect::string()->dynamic(),
44+
'cookieSecure' => Expect::anyOf('auto', null, true, false)->firstIsDefault()->dynamic(), // Whether the cookie is available only through HTTPS
4545
'disableNetteCookie' => Expect::bool(false), // disables cookie use by Nette
4646
]);
4747
}

0 commit comments

Comments
 (0)