From fa0af1b1e8eee046e52dfe803d8e935eac2998fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=A1=82=E6=88=90?= <475772164@qq.com> Date: Fri, 2 Aug 2019 20:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20fast.js=20=E8=A7=A3?= =?UTF-8?q?=E5=86=B3api=E6=A8=A1=E5=9D=97=E9=83=A8=E7=BD=B2=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E5=9F=9F=E5=90=8D=E6=97=B6token=E9=80=9A=E8=AE=AF?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/fast.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/assets/js/fast.js b/public/assets/js/fast.js index 388ebddd..f2df1d48 100644 --- a/public/assets/js/fast.js +++ b/public/assets/js/fast.js @@ -68,6 +68,9 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine options = $.extend({ type: "POST", dataType: "json", + xhrFields: { + withCredentials: true + }, success: function (ret) { index && Layer.close(index); ret = Fast.events.onAjaxResponse(ret);