Hi All,
Hope you are having a great day.
Been relying on the below parameters in the .env file for quite some time:
Why were these and some others such as CSP and Honeypot settings removed? Is it a bad practice to manually add these to the .env file and that we should hard-code them in their appropriate config classes in app/Config ?
(can't seem to find anything in the docs with regards to changes in the .env file)
Hope you are having a great day.
Been relying on the below parameters in the .env file for quite some time:
Code:
#--------------------------------------------------------------------
# SECURITY
#--------------------------------------------------------------------
security.csrfProtection = 'session'
security.tokenRandomize = true
security.tokenName = 'csrf_token'
security.headerName = 'X-CSRF-TOKEN'
security.cookieName = 'csrf_cookie'
security.expires = 7200
security.regenerate = false
security.redirect = true
security.samesite = 'Lax'Why were these and some others such as CSP and Honeypot settings removed? Is it a bad practice to manually add these to the .env file and that we should hard-code them in their appropriate config classes in app/Config ?
(can't seem to find anything in the docs with regards to changes in the .env file)