1.修改cas server 下\WEB-INF\deployerConfigContext.xml文件,给<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler" p:httpClient-ref="httpClient" />添加p:requireSecure=false
2.修改cas server 下\WEB-INF\springconfiguration\ticketGrantingTicketCookieGenerator.xml文件<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="false"
p:cookieMaxAge="-1"
p:cookieName="CASTGC"
p:cookiePath="/" />
</beans>
3.修改cas server 下\WEB-INF\springconfiguration\warnCookieGenerator.xml文件
<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="false"
p:cookieMaxAge="-1"
p:cookieName="CASPRIVACY"
p:cookiePath="/" />
</beans>
4.修改cas-servlet.xml配置文件中的logoutController,新增属性p:followServiceRedirects="true"
2.修改cas server 下\WEB-INF\springconfiguration\ticketGrantingTicketCookieGenerator.xml文件<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="false"
p:cookieMaxAge="-1"
p:cookieName="CASTGC"
p:cookiePath="/" />
</beans>
3.修改cas server 下\WEB-INF\springconfiguration\warnCookieGenerator.xml文件
<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
p:cookieSecure="false"
p:cookieMaxAge="-1"
p:cookieName="CASPRIVACY"
p:cookiePath="/" />
</beans>
4.修改cas-servlet.xml配置文件中的logoutController,新增属性p:followServiceRedirects="true"