From 9ada5633bcb1d202c98b6684e26b2c67452b4c2b Mon Sep 17 00:00:00 2001 From: "Tizian.Breuch" Date: Fri, 7 Nov 2025 10:06:34 +0100 Subject: [PATCH] test bilder upload --- Webshop.Api/Program.cs | 4 +++- Webshop.Domain/Entities/Product.cs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Webshop.Api/Program.cs b/Webshop.Api/Program.cs index a219a33..54157bb 100644 --- a/Webshop.Api/Program.cs +++ b/Webshop.Api/Program.cs @@ -38,7 +38,9 @@ var builder = WebApplication.CreateBuilder(options); var allowedOrigins = new string[] { "https://shopsolution-frontend.tzbre.dev", - "http://localhost:4200" + "http://localhost:4200", + "http://localhost:4200/", + "http://localhost:4200/*", }; builder.Services.AddCors(options => diff --git a/Webshop.Domain/Entities/Product.cs b/Webshop.Domain/Entities/Product.cs index 190271f..e6268a0 100644 --- a/Webshop.Domain/Entities/Product.cs +++ b/Webshop.Domain/Entities/Product.cs @@ -83,7 +83,7 @@ namespace Webshop.Domain.Entities { foreach (var catId in categorieIds) { - Productcategories.Add(new Productcategorie { ProductId = this.Id, categorieId = catId }); + Productcategories.Add(new Productcategorie { categorieId = catId }); } } }