502 Error while connecting to api of same domain

I hosted a vue app and a laravel api under same domain. I hosted vue app under htdocs/ and hosted laravel api under htdocs/api/. When the vue app send a request to the api, it gets 502 error. When I call api from the browser it works.

Likely due to this???

1 Like

I’m doing this way.

Do you have a website URL we can check?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.