我经常使用AJAX编写MYSQL数据库,如下所示 url: "writescript.php", data: { data : mydata,//this could be anything success: function (html) { }writescript.php看起来像这样//and then write into database.
正确错误消息:CSRF token error. Try to refresh the page and try again.或者剩下两个想法,因为我改变了域名,CSRF-令牌就不高兴了:(我该如何修复?
或者,因为我使用Nginx作为负载平衡器,这样CSRF令牌就会在途中丢失(但我之前使用的是相同的设置)。