79829464

Date: 2025-11-25 08:57:32
Score: 1
Natty:
Report link

In the past anyone could use BASE_URL + ControllerName within the http request in Angular + .NET Core to call the server Controller, but in the latest version things work a little bit different.

I've investigated the problem why I couldn't reach server controllers just by passing "/ControllerName" in http requests.

So basicly Angular 18 + .NET core has 2 files which required to be edited as angular communicates trough proxy proxy.conf.js from Angular side and #ProjectName#.server.http file from the server side.

In both files you have to provide the name of the controller to establish communication.

Therefore BASE_URL is not required and you can just call "/ControllerName" in http requests.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Carl S.