Closed meiry closed 4 years ago
You should be checking the Origin header. There is a function to change the check (SetCheckConnectionCallback) so you can do a whitelist instead. By default the check is that the origin is the same as the host (which I never use, so it's probably wrong since it should prepend http and https to it).
great minimalistic server
In Client.cpp you have check ( i don't understand why you do it )
my request looks like this :
Listening
this function will return 1 and will fail the request , once i remove it the request process successfully can you explain why you do this check ?
the values are : origin = "http://127.0.0.1" host = "127.0.0.1:3000"