posted 2 years ago
I sincerely hope that I'm in appropriate forum.
My question is related with JavaScript (AJAX) and Spring Boot. So here it goes:
I'm getting 405 in console, when I send PUT request.
Here is my ajax call, which is part of bigger function:
I have a Promise object to handle asynchronous nature of ajax:
Now on the server side I have following, I have simple Task model object with omitted non relevant fields:
My controller class in Spring Boot and endpoint method for updating look like this:
I keep getting in the browser console 405. And on the console on server, I have following message:
I don't have SpringSecurity dependency...
I also asked on SO, but no luck..I really want to make PUT do the actual updating of the object, don't want to use POST, but that will be my last resort.