adding CORS headers for socket server POST method