I am currently developing a web application with angular2. I followed the Tour of Heroes tutorial to get the basics. So, my local server setup and application architecture is the same one.
I now need to perform a POST request to a static file. I managed to get the request sent, but the server answers 404 not found. Inspecting the network requests with Firebug, i can see this:
This is really weird, since the file exists and the url is correct. In fact, if I paste it in a browser (and perform a GET request), i can retrieve the json correctly.
I think that this could be caused by bad server end configuration. As the angular2 tutorial, i am using lite-server, but something is wrong.
Any clue?