Issue #206 Support for CORS
Make authentication work when API requests are made to a different server/port
[minor] Remove useless attribute