Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229600

Ionic 2 http post - .jsp compatibility issue?

$
0
0

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


Viewing all articles
Browse latest Browse all 229600

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>