Skip to content

Commit

Permalink
add support HTTPS in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardojoao authored and gustavosbarreto committed Apr 6, 2020
1 parent a84f91a commit 9e8291f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/helpers/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import router from "../router";

export default () => {
let axios = Axios.create({
baseURL: `http://${location.host}/api`,
baseURL: `${location.protocol}//${location.host}/api`,
headers: {
Authorization: `Bearer ${localStorage.getItem('token')}`
}
Expand Down

0 comments on commit 9e8291f

Please sign in to comment.