Add Authorization to allowed headers.
Fixed failing integration tests
Refactored endpoint for the redirection.