I'm using Angular HTTP to make a post request to a .jsp controller.
return this.http.post(this.submitTimeURL,{test:'hello'}).map((response: Response)=> { return response.json(); }).subscribe((data)=>{ debugger; });
In chrome dev tools I am seeing the following error:
Request Method: OPTIONS
Status Code: 405 JSPs only permit GET POST or HEAD
it's as if the browser didn't detect that the request was a post?
Any ideas on how I can get around this error?
Thanks