Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/config/components.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

return [
'request' => [
'cookieValidationKey' => 'api1337', // TODO this should be dynamic
'cookieValidationKey' => uniqid(uniqid(), true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will make cookie validation key change on every request, so cookies are directly invalidated once created.

The correct solution here would be to generate a components.local file when initializing the project.

],

'urlManager' => [
Expand Down