EOS Platform7.2/7.5/7/.6安全开启开启方式

阅读原文

【安全开关介绍】

从EOS Platform7.2开始,对于SQL注入、XSS跨站脚本攻击、跨站请求伪造攻击方面的问题增加了拦截器,设置了安全过滤开关,若项目需要可开启配置开关

【开启方式】

EOS Platform7.2/7.5开启方式

1、将apps_config\default\config\user-config.xml中颜色标记的false改为true

<group name="Http-Security">            

<configValue key="isOpenSecurity">false</configValue>   //是否启用安全开关          

<configValue key="isAllInHttps">false</configValue>            //是否所有的请求都启用https协议

 <!-- tomcat default config           

<configValue key="host">localhost</configValue>           

<configValue key="http-port">8080</configValue>           

<configValue key="https-port">8443</configValue>            

-->            

......

</group>    

提示:开启安全开关后,对tomcat应用服务器,还要将注释部分打开,并根据注释部分的配置参数配置tomcat应用服务器的HTTPS协议,HTTPS协议配置可参考tomcat说明;

2、打开apps_config\default\config\eos\handler-web.xml中的如下配置

<handler id="HttpRefererWebInterceptor"sortIdx="3"pattern="/*" class="com.eos.access.http.security.HttpRefererWebInterceptor"/>

 

EOS Platform7.6开启方式:

7.6中SCE在线开发平台是独立部署的,默认装好的目录下没有SCE介质,一些原先部署SCE就会有的安全配置,在默认安装好的7.6中就缺少了,可参考如下方式手动添加:

1、将apps_config\default\config\user-config.xml中isOpenSecurity的配置由false改为true,同时在该配置后增加红色标注的内容,根据项目实际情况进行配置

 <group name="Http-Security">            

<configValue key="isOpenSecurity">false</configValue>        //是否启用安全开关 

 <configValue key="isAllInHttps">false</configValue>             //是否所有的请求都启用https协议

<!-- tomcat default config    

<configValue key="host">localhost</configValue>    

<configValue key="http-port">8080</configValue>    

<configValue key="https-port">8443</configValue>     -->       //此处配置同platform7.2/7.5,若应用服务器是tomcat,需将注释打开,在tomcat上配置https协议

 <configValue key="Exclude">**/common.download</configValue>

......

</group> 

2、打开apps_config\default\config\eos\handler-web.xml中的如下配置

<handler id="HttpRefererWebInterceptor"sortIdx="3"pattern="/*" class="com.eos.access.http.security.HttpRefererWebInterceptor"/>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值