CORS deteciton improve 

CORS deteciton improve (chat.example.net vs exemple.net), remove hardcoded http-bind