Perhaps a server, when running in development mode, should require a custom HTTP header? This would be a non-simple request, and the browser will refuse.
Would this be a reasonable counter-measure?
For example:
POST / HTTP/1.1 << Ignored
Host: localhost:6379 << Ignored
SET abc 123 << Processed
QUIT << Processed