Skip to content

Hsts #1104

Answered by miguelgrinberg
Notadumdum asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way to distinguish a browser from a non-browser client. You can look at the user agent, but these are easily spoofed so this isn't a foolproof method. Not sure what HSTS article you read, but there is no relation between HSTS and detecting the type of client that connects to your server, regardless of being a Socket.IO server or just a plain HTTP server.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Notadumdum
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants