@navink386520 - I couldn't see your entire web page, but my guess is that you are trying to invoke the "get-profiles" action?
It requires the Adobe auth token which is not automatically included when you access the localhost URL. On the other hand, it is included if you access the "experience.adobe.com/..." URL outputted by the app run command.
I recommend to go through this codelab to understand the details: https://adobeio-codelabs-campaign-standard-adobedocs.project-helix.page/.
This is mentioned in Lesson 3.