CGI browser not getting correct feedback

In the front-end and back-end interaction, Python + js

$.get() will console.log() the py file code that processes the data to the browser;

$.post() will not produce results and report an error: code 501, message Can only POST to CGI scripts;

Checked, the CGI script must be located in the cgi-bin folder

Source: https://stackoverflow.com/questions/5163118/why-wont-my-simple-cgi-server-handle-ajax-post-requests

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325170012&siteId=291194637