my Fortify scan is complaining about saving unvalidated data to cookie. To be exact it does not like that I use window.location.hostname directly when saving to cookie. Is is false positive? Do I really need to encode window.location.hostname like in example below?
window.location.hostname
const encodedHostname = encodeURI(window.location.hostname);
1.4m articles
1.4m replys
5 comments
57.0k users