Secure cookies error

Secure cookies error

بواسطة - Roberto Catanuto
عدد الردود: 1

Moodle 3.9.8+

Hi, I recently discovered this error in our installation:

https://server/report/security/index.php

Error  -  Secure cookies  - Please enable secure cookies - HTTP security


To be honest, our installation is working great. Do you think it's urgent to fix this issue? Any possible problems for our users?

Thank you very much.



المرفق Screenshot 2021-09-03 at 10.52.50.png
متوسط التقييمات: -
رداً على Roberto Catanuto

Re: Secure cookies error

بواسطة - Tradebloc Tim Clark
What type of web server you use? Is it Apache2, nginx or windows IIS. Secure cookies can be enforced from web server site configuration as well. Even if your installation is working fine, you should follow best security practices. Here is a small snippet on how it is done in apache2 web server

Header always edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure