'Vue Axios Call Returns "doesn't work properly without JavaScript enabled"

I have a Vue.js app that makes an Axios call. It works fine when I start the app with npm run serve. However, I tried containerizing the app with Docker and nginx, and when I do so, the Axios call does not return the expected response. It returns HTML text that contains the message "We're sorry but app doesn't work properly without JavaScript enabled. Please enable it to continue." What might be causing this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source