Grails Heroku app with ssl

I deployed the Grails app to Heroku on the dock.

I purchased an SSL certificate from dnsSimple and successfully configured it, considering when I clicked the button " https://mydomainname.com " I see the Certificate Information.

Now I want to force all messages to be set to https.
I tried the following things, but so far nothing has worked:
grails is a simple application for testing spring secure secure channel security on Heroku
grails - spring - a secure security channel that triggers a redirect loop (on Heroku)
and many other posts recommending using a filter for https, but no luck.
Can you help me?

0
source share
2 answers

See "Using the Spring Security Plugin in Heroku Plugin Documents for a description of the useHeaderCheckChannelSecurity property: http://grails-plugins.github.com/grails-heroku/docs/manual/guide/2%20Usage.html

0
source

This issue occurs due to the misuse of the x-forwarded-proto header used in the spring security kernel and the X-FORWARDED-PROTO header used by the hero. Load Balancer for https based URL. The following link worked for me.

Heroku Forum

0
source

Source: https://habr.com/ru/post/1394118/


All Articles