💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## Ajax跨域访问,未携带cookie的解决办法 ajax中添加`xhrFields: {withCredentials: true},`跨域访问则会携带cookie ~~~ $.ajax({ type: "POST", url: "http://www.work.com:8040/frontend/site/code", headers: {"X-CSRF-TOKEN":"6LQjzEclDdUFKndRvHGso29BTPq6chYKgo9DG9Oz"}, data: {"name":"login"}, dataType:"json", crossDomain: true, xhrFields: {withCredentials: true}, // 携带cookie success: function(data){}, error:function(result){console.log(result);} }); ~~~