dotnet-architecture / eShopOnContainers

Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.

Home Page:https://dot.net/architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CORS-related errors when loading SPA version of web app

ngaisteve1 opened this issue · comments

I cloned the dev branch and followed the instructions to build and run the project using Docker Compose. After running docker-compose build and docker-compose up, health checks indicate that all services are healthy.

webstatus

The MVC version of the web app is functioning correctly, but I encountered CORS-related errors when trying to load the SPA version. This issue is likely due to Cross-Origin Resource Sharing (CORS) restrictions.

webmvc

webspa

I would appreciate guidance on how to configure the necessary CORS settings to resolve this issue. Please provide instructions or suggestions on how to modify the project's configuration files or any other relevant steps to enable proper CORS handling for the SPA version of the web app.

Thank you for your assistance.

Please feel free to adjust the content as needed.

Likely broken in the major refactoring that we're doing. Will take a look.