服务器端:

1.找到cas\WEB-INF\spring-configuration\ticketGrantingTicketCookieGenerator.xml, p:cookieSecure="true" 改为 p:cookieSecure="false" 如下:

<bean id="ticketGrantingTicketCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
        p:cookieSecure="false"
        p:cookieMaxAge="-1"
        p:cookieName="CASTGC"
        p:cookiePath="/cas" />

2.找到cas\WEB-INF\spring-configuration\warnCookieGenerator.xml ,将 p:cookieSecure="改为 p:cookieSecure="false",改完如下:

<bean id="warnCookieGenerator" class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
        p:cookieSecure="false"
        p:cookieMaxAge="-1"
        p:cookieName="CASPRIVACY"
        p:cookiePath="/cas" />

3.找到cas\WEB-INF\deployerConfigContext.xml,在文件中找到“HttpBasedServiceCredentialsAuthenticationHandlerbean,然后添加:p:requireSecure="false",改完如下:

<bean class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
                    p:httpClient-ref="httpClient" p:requireSecure="false" />

 

 

 

 

相关文章:

  • 2021-10-02
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-02-07
  • 2022-12-23
  • 2021-10-23
猜你喜欢
  • 2021-06-22
  • 2021-11-01
  • 2021-09-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
相关资源
相似解决方案