Added Support for Cors and Bearer Tokens