From 453872512948beb87dbe52d21792e04cf091b7f0 Mon Sep 17 00:00:00 2001 From: Java <992132355@qq.com> Date: Fri, 8 Nov 2019 11:11:41 +0800 Subject: [PATCH] Update leaderGo --- leaderGo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/leaderGo b/leaderGo index adaf6f0..c5baaa6 100644 --- a/leaderGo +++ b/leaderGo @@ -107,4 +107,8 @@ java四种引用:1.强引用:new对象和string复制,gc不可回收,会 3.WeakReference:无论内存充足与否都会被回收; 4.虚引用(PhantomReference) -CORS请求:请求头多了origin字段 +CORS请求:请求头多了origin字段, + -->服务端返回Access-Control-Allow-Origin: http://api.bob.com + Access-Control-Allow-Credentials: true + Access-Control-Expose-Headers: FooBar + Content-Type: text/html; charset=utf-8