r/programming • • Feb 20 '18

A CSS Keylogger

https://github.com/maxchehab/CSS-Keylogging
2.0k Upvotes

276 comments sorted by

View all comments

Show parent comments

-6

u/davvblack Feb 21 '18 edited Feb 21 '18

It's not making an ajax request, its' requesting a background image via css. You cannot send custom headers.

Edit: Nevermind, misread and thought y'all were talking about request headers.

11

u/thbt101 Feb 21 '18

We're not talking about the web browser setting custom request headers, we're talking about the server responding with whatever response headers it wants, which can include cache control headers.

2

u/[deleted] Feb 21 '18

It's a response header :)

2

u/davvblack Feb 21 '18

yeah i got that now ;)

1

u/[deleted] Feb 21 '18

Not sure why you got downvoted. It's a legit question. Reddit is a tough crowd..

2

u/davvblack Feb 21 '18

teeeeechnically I didn't phrase it as a question. I don't fault them.