'Grails project after deploy to heroku JSESSIONID cookie attribute secure is not set

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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source