Skip to content

Unable to load list items in deployed ToDo web app — requests to http://localhost:3100/lists blocked by CORS #20

Description

@Menghua1

Describe the issue:
After deploying todo-nodejs-mongo-aks using azd up, the web page opens but the UI never finishes loading (stuck on “Loading List Items…”). The browser console shows that the frontend is trying to call http://localhost:3100/lists, which fails due to CORS / secure context / Private Network Access restrictions.
Image

Repro Steps:

  1. Run azd init -t todo-nodejs-mongo-aks.
  2. Run azd up.
  3. Open the deployed Web App URL shown by azd up.

Environment:

  • Template: todo-nodejs-mongo-aks.
  • Azd version: azd version 1.25.0-beta.1-pr.6201265 (commit 616db8159472423e6da67664bb657733a5b00ea6).
  • OS: Windows and Devcontainer.
  • Branch: Main.

Expected behavior:
The deployed web app should load successfully.

@jongio and @rajeshkamal5050 for notification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions