How to solve these security problems?
-
Hello,
I scanned my website with the Acunetix tool and below vulnerabilities found:1- Cookie(s) without HttpOnly flag set
2- Disable OPTIONS Method
3- CORS (Cross-Origin Resource Sharing) origin validation failureTo solve these problems, I added below lines to my Virtual Host configuration file and restarted the Apache service:
Header always edit Set-Cookie (.*) "$1;HttpOnly;Secure;samesite=lax" <Location /> <LimitExcept GET POST> order deny,allow deny from all </LimitExcept> </Location> Header set Access-Control-Allow-Credentials "true"But problems existed.
I added below lines to the .htaccess file too:Header always edit Set-Cookie (.*) "$1; HttpOnly" Header always edit Set-Cookie (.*) "$1; Secure"How to solve them?
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How to solve these security problems?’ is closed to new replies.