tuandm / laravue

Admin dashboard for enterprise Laravel applications built by VueJS and Element UI https://laravue.dev
https://laravue.dev
MIT License
2.21k stars 655 forks source link

Calling of external APIs issue - enforcing SSL or automatically changing to https #307

Open mightypeng opened 3 years ago

mightypeng commented 3 years ago

Good day everyone! I hope you and your family are all safe during this time of pandemic.

I just have a quick question and hopefully someone can answer me as soon as possible, as I've been troubleshooting it for almost a week now.

I've clone this project and tried to play along and explore the functionalities and features, especially that I am new in terms of frontend development (vueJS as an example). When I am trying to call an external or outside APIs that I've created in my local (which have not SSL; therefore http) - it shows "https" in the Developer Tools, thus returning an error.

I have already scan through the codes of this repository, I even tried going inside the docker container/image of the laravue and tried to "curl" the external API I am trying to use and it can call it successfully. However, if using the browser for the Laravue, it suddenly enforce all the "http" APIs I am using to "https:

Do you know which particular code, settings or configuration inside this repository that I need to change (set it to false, etc.) ? Thank you in advance.

  1. My setup in my local is that I have docker containers up and running for this laravue project
  2. I have also docker containers up and running for the external APIs I want to use
  3. I am using "axios" in this Laravue project to call the external APIs
tuandm commented 3 years ago

@mightypeng Thanks for reaching out this project, can you please add more details such as: