❔ .NET 6 GET method returns OK even if there is no such endpoint
I've a .NET 6 Web Application with Blazor wasm front-end.
When I make an HTTP GET request from front-end to back-end, even if the address I specify in the request is mapped to no controller method, the server would still respond with an OK and with the index.html page.
I'd like to have a NOT FOUND answer from the server, instead.
I've tried searching on the web but I had no luck until now
When I make an HTTP GET request from front-end to back-end, even if the address I specify in the request is mapped to no controller method, the server would still respond with an OK and with the index.html page.
I'd like to have a NOT FOUND answer from the server, instead.
I've tried searching on the web but I had no luck until now