Created
March 10, 2018 07:42
-
-
Save anonymous/60f0d016d1df0c861407dd067b18ee76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let headers = new HttpHeaders(); | |
headers = headers.append("Authorization", "Basic " + btoa("username:password")); | |
headers = headers.append("Content-Type", "application/x-www-form-urlencoded"); | |
this.http.post<Model>(url, data, headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment