From 4d795de51d035e8bf7ef5996a81e9bcd4df9412e Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sat, 2 Nov 2019 23:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20shiro.accessControlAllowMe?= =?UTF-8?q?thods=20=E5=92=8C=20shiro.accessControlAllowHeaders=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/core/src/main/resources/config/jeesite-core.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index 74820b1f..8f85022c 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -357,6 +357,10 @@ shiro: # accessControlAllowOrigin: http://demo.jeesite.com # accessControlAllowOrigin: '*' + # 允许跨域访问时,可以使用的方法和响应头 +# accessControlAllowMethods: GET, POST, OPTIONS +# accessControlAllowHeaders: Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With + # 是否允许接收跨域的Cookie凭证数据 # accessControlAllowCredentials: true