From b43a76921614e0fc9663a9d9a38073908bc0ea69 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 5 Aug 2024 17:09:24 +0200 Subject: [PATCH] =?UTF-8?q?Proxy-Konfiguration=20hinzugef=C3=BCgt,=20um=20?= =?UTF-8?q?API-Anfragen=20w=C3=A4hrend=20der=20Entwicklung=20zu=20erleicht?= =?UTF-8?q?ern.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ClientApp/staff-db-ui/angular.json | 3 ++- ClientApp/staff-db-ui/proxy.conf.json | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 ClientApp/staff-db-ui/proxy.conf.json diff --git a/ClientApp/staff-db-ui/angular.json b/ClientApp/staff-db-ui/angular.json index f5d8a56..40388b4 100644 --- a/ClientApp/staff-db-ui/angular.json +++ b/ClientApp/staff-db-ui/angular.json @@ -191,7 +191,8 @@ "options": { "liveReload": false, "port": 4204, - "buildTarget": "staffdb:build" + "buildTarget": "staffdb:build", + "proxyConfig": "proxy.conf.json" }, "configurations": { "production": { diff --git a/ClientApp/staff-db-ui/proxy.conf.json b/ClientApp/staff-db-ui/proxy.conf.json new file mode 100644 index 0000000..84ee36d --- /dev/null +++ b/ClientApp/staff-db-ui/proxy.conf.json @@ -0,0 +1,7 @@ +{ + "/api": { + "target": "https://localhost:7202", + "secure": false, + "changeOrigin": true + } +} \ No newline at end of file