added port value to getFullHOstName()
added simple CORS implementation