detect secure proxy header