gpt4 book ai didi

grails - Acegi、Grails、JBoss、SSL 从 http<>https 来回

转载 作者:太空宇宙 更新时间:2023-11-03 14:21:38 27 4
gpt4 key购买 nike

我已经在我的服务器上安装了 SSL。我的问题是如何通过 acegi 插件在选定的 Controller /页面上强制使用 https。

Acegi 插件支持一个属性 forcehttps,当设置为 true 时,一旦用户登录,所有页面都会受到保护。我想改变这种行为,一旦用户注销,他们应该被重定向到不安全的页面。所以本质上是 http>https>http.

谢谢,世界银行

最佳答案

forceHttps 只强制登录页面使用 SSL。之后链接是相对的,因此用户将继续使用 SSL,但这不是必需的。

如果您想精细控制哪些 URL 使用 SSL,哪些不使用,请参阅 http://www.grails.org/AcegiSecurity+Plugin+-+Customizing+with+SecurityConfig 的“ channel 安全”部分

关于grails - Acegi、Grails、JBoss、SSL 从 http<>https 来回,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2386248/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com