[Vuejs]-Using Vue and axios post to json file problem

0👍

The types of HTTP requests GET and POST have their own roles. GET is a request to retrieve information, POST is a request to write data, and the server acts differently for each method. The above error indicates that the server is unable to process the request for POST requests.

Sending a get request from the URL above seems to work well because it means bringing in the todolist.json file, and sending a post request to a specific file is inappropriate.

Leave a comment