Skip to content

Commit

Permalink
HttpExtension: dynamic options cookiePath, cookieDomain, cookieSecure (
Browse files Browse the repository at this point in the history
  • Loading branch information
website21cz authored and dg committed Oct 6, 2022
1 parent df1eb43 commit a0d4f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Bridges/HttpDI/HttpExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function getConfigSchema(): Nette\Schema\Schema
'csp' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy
'cspReportOnly' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy-Report-Only
'featurePolicy' => Expect::arrayOf('array|scalar|null'), // Feature-Policy
'cookiePath' => Expect::string(),
'cookieDomain' => Expect::string(),
'cookieSecure' => Expect::anyOf('auto', null, true, false)->firstIsDefault(), // Whether the cookie is available only through HTTPS
'cookiePath' => Expect::string()->dynamic(),
'cookieDomain' => Expect::string()->dynamic(),
'cookieSecure' => Expect::anyOf('auto', null, true, false)->firstIsDefault()->dynamic(), // Whether the cookie is available only through HTTPS
'disableNetteCookie' => Expect::bool(false), // disables cookie use by Nette
]);
}
Expand Down

0 comments on commit a0d4f7c

Please sign in to comment.