1
I’m calling a home API from the implemented Https application for Http Rest API. I wrote the logic in Vuejs. Web service call failed with the message below.
Vue-Resource.js:1091 Mixed Content: The page at 'https://nomedapagina.herokuapp.com/' was Loaded over HTTPS, but requested an insecure Xmlhttprequest endpoint 'http://api.promasters.net.br/cotacao/v1/valores'. This request has been blocked; the content must be served over HTTPS. (Anonymous) @ Vue-Resource.js:1091
through HTTPS requests from my HTTPS application - there is no alternative solution to this and the mixing protocols can also put the security of the application at risk, but even so would like to be able to run my application on the web server, all because of this line of code below
created: function() {
var self = this;
self.$http.get('http://api.promasters.net.br/cotacao/v1/valores').then(function(response) {
self.bancodedados = response.body;
});
},
How could I fix this?
I am loading a dollar quotation table getting the information from a URL HTTP in the form of json
Do you have any back-end part in this application? I believe this could be solved if you first accessed your back-end and in turn, your back-end would access the desired url, and then returned to your front-end.
– guastallaigor
It has no back-end, it’s just an embedding html file of Javascript receiving an http URL of a json return as shown in this post. Since you said the back-end is the solution what kind of implementation the back-end needs to solve this kind of problem?
– wladyband