Deploys Deploy到Heroku JsessionId cookie属性安全的安全项目尚未设置

发布于 2025-01-27 19:33:15 字数 550 浏览 3 评论 0原文

大家好,

我想将jsessionid cookie设置为属性安全。

因此,我在application.yl中配置了服务器 - > session- cookie-> secure:true,一旦我在localhost运行了该应用程序,它就可以设置为true,但是一旦我将其部署到Heroku Server中通过詹金斯(Jenkins)进行我的生产,它无法像这张图片那样将其设置为真实。 在此处输入图像描述

我的Grails项目依赖项如下。

grails grails版本= 3.3.14, Java 8, gradle包装3.5

因此,如果您有任何建议将jsessionId cookie设置为属性属于Heroku Server的属性,请告知我。

非常感谢您。

Hi everyone,

i would like to set JSESSIONID cookie at attribute secure to true.

So, i have configured in application.yml for server->session->cookie->secure:true, and once i did run the application in localhost it could set secure to true, but once i deploy it to heroku server via jenkins for my production it could not set secure to true like this picture.
enter image description here

My grails project dependencies as the following.

grails version = 3.3.14,
Java 8,
Gradle WrapperVersion 3.5

So, if you have any suggestion to set JSESSIONID cookie at attribute secure to true for heroku server please advise me.

Thank you very much.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文