Swift Alamofire add custom header to all requests
问题 I tried to add custom header with this: let manager = Manager.sharedInstance manager.session.configuration.HTTPAdditionalHeaders = [ "Authorization": "Token \(token)" ] But it doesn't work, what am i doing wrong? I need to add this after login, so that header will be used in all requests. 回答1: A way to do this is to use a RequestAdapter as demoed on the Alamofire advanced usage documentation. 回答2: I don't know where you do that but my AlomoFire requests look like : Alamofire.request(.GET,