BIN: Analyse-headers: Adds to description for cookie flag

Jonathan Hodgson 4 years ago
parent fb5774a584
commit 3ce547a0b2
  1. 4
      bin/.bin/webtest/analyse-headers

@ -255,7 +255,8 @@ sent over unencrypted channels\n\n"
fi fi
if ! echo "$value" | grep -q "SameSite=Strict"; then if ! echo "$value" | grep -q "SameSite=Strict"; then
output+="SameSite controls whether a cookie is sent with cross-origin requests, \ output+="The SameSite flag isn't set to Strict. The SameSite flag \
controls whether a cookie is sent with cross-origin requests, \
providing some protection against cross-site request forgery attacks. providing some protection against cross-site request forgery attacks.
Strict means the browser sends the cookie only for same-site requests\n\n" Strict means the browser sends the cookie only for same-site requests\n\n"
ret=$((ret>1 ? ret : 1)) ret=$((ret>1 ? ret : 1))
@ -402,6 +403,7 @@ echo "$missingHeaders" | while read line; do
"$functionName" >> "$tmpfile" "$functionName" >> "$tmpfile"
done done
echo ""
cat "$tmpfile" cat "$tmpfile"
rm "$tmpfile" rm "$tmpfile"

Loading…
Cancel
Save