这个错误是因为请求的Content-Type不正确,应该是application/json,可以通过添加以下代码修复:

$.ajax({ url: "https://svip-api.cveoy.top/v3/grants", type: "POST", dataType: "json", contentType: "application/json", //添加这一行 data: JSON.stringify({ keys: key }), success: function(data){ //... }, error: function(){ //... } });

下面代码报错Failed to load resource the server responded with a status of 415 请优化与修复!DOCTYPE htmlhtmlhead	title查询页面title	script src=httpscodejquerycomjquery-360minjsscript	style		body			margin 0;			padding

原文地址: http://www.cveoy.top/t/topic/bJ9f 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录