Skip to content

Feature(HW09): Run frontend and backend on different origins#3

Open
goodman74 wants to merge 1 commit into
fet/hw08from
fet/hw09
Open

Feature(HW09): Run frontend and backend on different origins#3
goodman74 wants to merge 1 commit into
fet/hw08from
fet/hw09

Conversation

@goodman74
Copy link
Copy Markdown
Owner

  • frontend

    • add API http wrapper
    • add .env configuration
    • configure custom frontend host
  • backend

    • configure custom backend host
    • configure CORS policy

- frontend
  - add API http wrapper
  - add .env configuration
  - configure custom frontend host

- backend
  - configure custom backend host
  - configure CORS policy
@goodman74
Copy link
Copy Markdown
Owner Author

goodman74 commented May 11, 2026

1.1 Запуск Backend (dotnet CLI / Visual Studio)

cd "H:\_ASP.NET\HW.OTUS\HW07.OTUS.ASP.NET"
dotnet build
dotnet run --project .\backend\PromoCodeFactory.WebHost

1.2 Запуск Backend через Docker Compose

cd "H:\_ASP.NET\HW.OTUS\HW07.OTUS.ASP.NET"
docker compose -f docker-compose.Development.yml build
docker compose -f docker-compose.Development.yml up -d

1.3 Запуск Frontend

cd "H:\_ASP.NET\HW.OTUS\HW07.OTUS.ASP.NET\frontend"
npm run dev

@goodman74 goodman74 changed the title Feature(CORS): Run frontend and backend on different origins Feature(HW09): Run frontend and backend on different origins May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant